Commit 280a5774 authored by Vincent Pelletier's avatar Vincent Pelletier

When the "transactional undo" object is stored, prune it from cache.

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