Commit 110cf175 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Bug fix: del only if uuid key exists and it's value is empty.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1910 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1f17c395
......@@ -231,7 +231,8 @@ class TransactionManager(object):
for tid in [x.getTID() for x in self._uuid_dict.get(uuid, [])]:
self.abort(tid, even_if_locked=False)
# cleanup _uuid_dict if no transaction remains for this node
if not self._uuid_dict.get(uuid):
transaction_set = self._uuid_dict.get(uuid)
if transaction_set is not None and not transaction_set:
del self._uuid_dict[uuid]
def loadLocked(self, oid):
......
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