Commit b61380b7 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a FIXME about undo incompatibility with replication.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2271 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 43032f3c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment