Commit aa4a267f authored by Vincent Pelletier's avatar Vincent Pelletier

Call remove from abortFor.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2509 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 41c30414
...@@ -292,7 +292,6 @@ class TransactionManager(object): ...@@ -292,7 +292,6 @@ class TransactionManager(object):
Remove a transaction, commited or aborted Remove a transaction, commited or aborted
""" """
node = self._tid_dict[tid].getNode() node = self._tid_dict[tid].getNode()
# remove both mappings, node will be removed in abortFor
del self._tid_dict[tid] del self._tid_dict[tid]
del self._node_dict[node][tid] del self._node_dict[node][tid]
...@@ -312,8 +311,9 @@ class TransactionManager(object): ...@@ -312,8 +311,9 @@ class TransactionManager(object):
if node not in self._node_dict: if node not in self._node_dict:
return return
# remove transactions # remove transactions
remove = self.remove
for tid in self._node_dict[node].keys(): for tid in self._node_dict[node].keys():
del self._tid_dict[tid] remove(tid)
# discard node entry # discard node entry
del self._node_dict[node] del self._node_dict[node]
......
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