Commit 890a1cef authored by Julien Muchembled's avatar Julien Muchembled

master: fix bug when a storage is lost in the middle of a transaction

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2785 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fa6704c5
......@@ -194,9 +194,11 @@ class Transaction(object):
# XXX: We might loose information that a storage successfully locked
# data but was later found to be disconnected. This loss has no impact
# on current code, but it might be disturbing to reader or future code.
self._lock_wait_uuid_set.discard(uuid)
self._uuid_set.discard(uuid)
return self.locked()
if self._prepared:
self._lock_wait_uuid_set.discard(uuid)
self._uuid_set.discard(uuid)
return self.locked()
return False
def lock(self, uuid):
"""
......
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