[Neo-report] r1889 vincent - /trunk/neo/client/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 5 16:08:30 CET 2010


Author: vincent
Date: Fri Mar  5 16:08:23 2010
New Revision: 1889

Log:
Make cache pruning conditional in tpc_finish.

It is possible to have a transactional undo of object creation without
having the object in cache.
For some reason, it happens in 6.9GB FileStorage import.

Modified:
    trunk/neo/client/app.py

Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Fri Mar  5 16:08:23 2010
@@ -758,7 +758,8 @@
                 for oid in self.local_var.data_dict.iterkeys():
                     data = self.local_var.data_dict[oid]
                     if data == '':
-                        del self.mq_cache[oid]
+                        if oid in self.mq_cache:
+                            del self.mq_cache[oid]
                     else:
                         # Now serial is same as tid
                         self.mq_cache[oid] = self.local_var.tid, data





More information about the Neo-report mailing list