[Neo-report] r1910 gregory - /trunk/neo/storage/transactions.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 5 22:24:56 CET 2010


Author: gregory
Date: Fri Mar  5 22:24:54 2010
New Revision: 1910

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

Modified:
    trunk/neo/storage/transactions.py

Modified: trunk/neo/storage/transactions.py
==============================================================================
--- trunk/neo/storage/transactions.py [iso-8859-1] (original)
+++ trunk/neo/storage/transactions.py [iso-8859-1] Fri Mar  5 22:24:54 2010
@@ -231,7 +231,8 @@
         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):





More information about the Neo-report mailing list