Commit 7a662dd7 authored by Vincent Pelletier's avatar Vincent Pelletier

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.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1889 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3bd81429
......@@ -758,6 +758,7 @@ class Application(object):
for oid in self.local_var.data_dict.iterkeys():
data = self.local_var.data_dict[oid]
if data == '':
if oid in self.mq_cache:
del self.mq_cache[oid]
else:
# Now serial is same as tid
......
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