Commit 713c5c1e authored by Aurel's avatar Aurel

fix load method


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@99 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7bb2056d
......@@ -311,7 +311,7 @@ class Application(ThreadingMixIn, object):
continue
msg_id = conn.getNextId()
p = Packet()
p.askObject(msg_id, oid, serial, tid)
p.askObject(msg_id, str(oid), str(serial), str(tid))
self.local_var.tmp_q = Queue(1)
self.queue.put((self.local_var.tmp_q, msg_id, conn, p), True)
......@@ -328,7 +328,7 @@ class Application(ThreadingMixIn, object):
continue
# Check data
noid, start_serial, end_serial, compression, checksum, data = self.local_var.loaded_object
noid, start_serial, end_serial, compression, checksum, data = self.local_var.asked_object
if noid != oid:
# Oops, try with next node
logging.error('got wrong oid %s instead of %s from node %s' \
......@@ -343,7 +343,7 @@ class Application(ThreadingMixIn, object):
# Everything looks allright
break
if self.local_var.loaded_object == -1:
if self.local_var.asked_object == -1:
# We didn't got any object from all storage node
raise 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