Commit 74b97fef authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix undefined variable.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1919 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 2365d015
...@@ -811,7 +811,7 @@ class Application(object): ...@@ -811,7 +811,7 @@ class Application(object):
# First get transaction information from a storage node. # First get transaction information from a storage node.
cell_list = self._getCellListForTID(transaction_id, readable=True) cell_list = self._getCellListForTID(transaction_id, readable=True)
assert len(cell_list), 'No cell found for transaction %s' % ( assert len(cell_list), 'No cell found for transaction %s' % (
dump(tid), ) dump(transaction_id), )
shuffle(cell_list) shuffle(cell_list)
for cell in cell_list: for cell in cell_list:
conn = self.cp.getConnForCell(cell) conn = self.cp.getConnForCell(cell)
...@@ -828,7 +828,7 @@ class Application(object): ...@@ -828,7 +828,7 @@ class Application(object):
if self.local_var.txn_info == -1: if self.local_var.txn_info == -1:
# Tid not found, try with next node # Tid not found, try with next node
logging.warning('Transaction %s was not found on node %s', logging.warning('Transaction %s was not found on node %s',
dump(tid), self.nm.getByAddress(conn.getAddress())) dump(transaction_id), self.nm.getByAddress(conn.getAddress()))
continue continue
elif isinstance(self.local_var.txn_info, dict): elif isinstance(self.local_var.txn_info, dict):
break break
......
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