Commit 9e0e0d1e authored by Vincent Pelletier's avatar Vincent Pelletier

AskStoreObject packet contains loop invariants only. Move out of loop.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1720 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4b7476ad
......@@ -525,6 +525,8 @@ class Application(object):
data = ''
compressed_data = compress(data)
checksum = makeChecksum(compressed_data)
p = Packets.AskStoreObject(oid, serial, 1,
checksum, compressed_data, self.local_var.tid)
# Store data on each node
self.local_var.object_stored_counter = 0
for cell in cell_list:
......@@ -533,8 +535,6 @@ class Application(object):
continue
self.local_var.object_stored = 0
p = Packets.AskStoreObject(oid, serial, 1,
checksum, compressed_data, self.local_var.tid)
try:
self._askStorage(conn, p)
except ConnectionClosed:
......
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