Commit 43032f3c authored by Vincent Pelletier's avatar Vincent Pelletier

Move invariant packet creation out of loop.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2270 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 98fff341
......@@ -864,6 +864,7 @@ class Application(object):
dump(undone_tid), )
shuffle(cell_list)
cell_list.sort(key=self.cp.getCellSortKey)
packet = Packets.AskTransactionInformation(undone_tid)
for cell in cell_list:
conn = self.cp.getConnForCell(cell)
if conn is None:
......@@ -872,8 +873,7 @@ class Application(object):
self.local_var.txn_info = 0
self.local_var.txn_ext = 0
try:
self._askStorage(conn, Packets.AskTransactionInformation(
undone_tid))
self._askStorage(conn, packet)
except ConnectionClosed:
continue
except NEOStorageNotFoundError:
......
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