Commit 94afb9ba authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix wrong instance comparison (dict instead of tuple) and a typo.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@376 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e34772b1
......@@ -857,7 +857,7 @@ class Application(object):
# Got history for wrong oid
continue
if not isinstance(self.local_var.history, dict):
if not isinstance(self.local_var.history, tuple):
raise NEOStorageError('history failed')
if object_only:
# Use by getSerial
......@@ -865,7 +865,7 @@ class Application(object):
# Now that we have object informations, get txn informations
history_list = []
for serial, size in self.local_var.hisory[1]:
for serial, size in self.local_var.history[1]:
partition_id = u64(serial) % self.num_partitions
cell_list = self.pt.getCellList(partition_id, True)
shuffle(cell_list)
......
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