[Neo-report] r2509 vincent - /trunk/neo/master/transactions.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Dec 10 11:07:11 CET 2010


Author: vincent
Date: Fri Dec 10 11:07:11 2010
New Revision: 2509

Log:
Call remove from abortFor.

Modified:
    trunk/neo/master/transactions.py

Modified: trunk/neo/master/transactions.py
==============================================================================
--- trunk/neo/master/transactions.py [iso-8859-1] (original)
+++ trunk/neo/master/transactions.py [iso-8859-1] Fri Dec 10 11:07:11 2010
@@ -292,7 +292,6 @@ class TransactionManager(object):
             Remove a transaction, commited or aborted
         """
         node = self._tid_dict[tid].getNode()
-        # remove both mappings, node will be removed in abortFor
         del self._tid_dict[tid]
         del self._node_dict[node][tid]
 
@@ -312,8 +311,9 @@ class TransactionManager(object):
         if node not in self._node_dict:
             return
         # remove transactions
+        remove = self.remove
         for tid in self._node_dict[node].keys():
-            del self._tid_dict[tid]
+            remove(tid)
         # discard node entry
         del self._node_dict[node]
 




More information about the Neo-report mailing list