Commit bb06437b authored by Aurel's avatar Aurel

some bug fix in undoLog


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@191 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 999fe2fa
...@@ -713,10 +713,10 @@ class Application(object): ...@@ -713,10 +713,10 @@ class Application(object):
# Reorder tids # Reorder tids
ordered_tids = [] ordered_tids = []
for tids in self.local_var.node_tids.values(): for tids in self.local_var.node_tids.values():
ordered_tids.append(tids) ordered_tids.extend(tids)
# XXX do we need a special cmp function here ? # XXX do we need a special cmp function here ?
ordered_tids.sort(reverse=True) ordered_tids.sort(reverse=True)
logging.info("UndoLog, tids %s", ordered_tids)
# For each transaction, get info # For each transaction, get info
undo_info = [] undo_info = []
for tid in ordered_tids: for tid in ordered_tids:
...@@ -747,6 +747,10 @@ class Application(object): ...@@ -747,6 +747,10 @@ class Application(object):
elif isinstance(self.local_var.txn_info, dict): elif isinstance(self.local_var.txn_info, dict):
break break
if self.local_var.txn_info == -1:
# TID not found at all
continue
# Filter result if needed # Filter result if needed
if filter is not None: if filter is not None:
# Filter method return True if match # Filter method return True if match
......
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