[Neo-report] r2271 vincent - /trunk/neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 1 16:26:00 CEST 2010


Author: vincent
Date: Wed Sep  1 16:25:59 2010
New Revision: 2271

Log:
Add a FIXME about undo incompatibility with replication.

Modified:
    trunk/neo/client/app.py

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Wed Sep  1 16:25:59 2010
@@ -855,6 +855,15 @@ class Application(object):
             self._load_lock_release()
 
     def undo(self, undone_tid, txn, tryToResolveConflict):
+        # FIXME: undo must be refactored to work with replication:
+        # - load oid list from a readable storage
+        #   (excludes replicating nodes)
+        # - get each object's data backpointer from readable storage nodes
+        #   (excludes replicating nodes)
+        # - optionally, resolve conflicts
+        # - store object's backpointers in all writable storage nodes, or
+        #   store conflict resolution data
+        #   (includes replicating nodes)
         if txn is not self.local_var.txn:
             raise StorageTransactionError(self, undone_tid)
 





More information about the Neo-report mailing list