Commit dbff5a41 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Move invariant out of the loop.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2192 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 44bbd444
......@@ -450,6 +450,7 @@ class Application(object):
shuffle(cell_list)
cell_list.sort(key=self.cp.getCellSortKey)
self.local_var.asked_object = 0
packet = Packets.AskObject(oid, serial, tid)
for cell in cell_list:
logging.debug('trying to load %s from %s',
dump(oid), dump(cell.getUUID()))
......@@ -458,7 +459,7 @@ class Application(object):
continue
try:
self._askStorage(conn, Packets.AskObject(oid, serial, tid))
self._askStorage(conn, packet)
except ConnectionClosed:
continue
......
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