[Checkins] SVN: gocept.zeoraid/trunk/src/gocept/zeoraid/recovery.py
	removed fallback to store
    Thomas Lotze 
    tl at gocept.com
       
    Thu Feb 21 08:57:03 EST 2008
    
    
  
Log message for revision 84113:
  removed fallback to store
Changed:
  U   gocept.zeoraid/trunk/src/gocept/zeoraid/recovery.py
-=-
Modified: gocept.zeoraid/trunk/src/gocept/zeoraid/recovery.py
===================================================================
--- gocept.zeoraid/trunk/src/gocept/zeoraid/recovery.py	2008-02-21 13:56:37 UTC (rev 84112)
+++ gocept.zeoraid/trunk/src/gocept/zeoraid/recovery.py	2008-02-21 13:57:02 UTC (rev 84113)
@@ -84,8 +84,6 @@
 
         yield ('verified',)
 
-        restorable = hasattr(self.target, 'restore')
-
         # Recover from that point on until the target storage has all
         # transactions that exist in the source storage at the time of
         # finalization. Therefore we need to check continuously for new
@@ -106,12 +104,8 @@
             self.target.tpc_begin(txn_info, txn_info.tid, txn_info.status)
 
             for r in txn_info:
-                if restorable:
-                    self.target.restore(r.oid, r.tid, r.data, r.version,
-                                        r.data_txn, txn_info)
-                else:
-                    self.target.store(r.oid, r.tid, r.data, r.version,
-                                      txn_info)
+                self.target.restore(r.oid, r.tid, r.data, r.version,
+                                    r.data_txn, txn_info)
 
             self.target.tpc_vote(txn_info)
             self.target.tpc_finish(txn_info)
    
    
More information about the Checkins
mailing list