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): ...@@ -864,6 +864,7 @@ class Application(object):
dump(undone_tid), ) dump(undone_tid), )
shuffle(cell_list) shuffle(cell_list)
cell_list.sort(key=self.cp.getCellSortKey) cell_list.sort(key=self.cp.getCellSortKey)
packet = Packets.AskTransactionInformation(undone_tid)
for cell in cell_list: for cell in cell_list:
conn = self.cp.getConnForCell(cell) conn = self.cp.getConnForCell(cell)
if conn is None: if conn is None:
...@@ -872,8 +873,7 @@ class Application(object): ...@@ -872,8 +873,7 @@ class Application(object):
self.local_var.txn_info = 0 self.local_var.txn_info = 0
self.local_var.txn_ext = 0 self.local_var.txn_ext = 0
try: try:
self._askStorage(conn, Packets.AskTransactionInformation( self._askStorage(conn, packet)
undone_tid))
except ConnectionClosed: except ConnectionClosed:
continue continue
except NEOStorageNotFoundError: 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