Commit 8712c638 authored by Julien Muchembled's avatar Julien Muchembled

ConflictFreeLog: fix incremental conflict resolution

This is currently required for NEO.
parent 8af1da02
......@@ -83,7 +83,10 @@ class ConflictFreeLog(Persistent):
return dict(new_state, _log=saved_state['_log'][d:] + new_state['_log'])
# Another node rotated before us. Revert our rotation.
# Both the head and its predecessor conflict.
i = 0
# The following computed value is normally 0, except:
# - if the another node rotated during a conflict resolution
# - and if this is not the first conflict resolution.
i = len(old_state['_log']) - d
else:
# We didn't rotate. Just add our items to saved head.
# Only the head conflicts.
......
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