Commit e27358d1 authored by Julien Muchembled's avatar Julien Muchembled

storage: fix history() not waiting oid to be unlocked

This fixes a random failure in testClientReconnection:

Traceback (most recent call last):
  File "neo/tests/threaded/", line 754, in testClientReconnection
failureException: None is not true
parent 79be7787
......@@ -172,8 +172,11 @@ class ClientOperationHandler(EventHandler):
def askObjectHistory(self, conn, oid, first, last):
if first >= last:
raise ProtocolError('invalid offsets')
app =
# Delay the response.
app.queueEvent(self.askObjectHistory, conn, (oid, first, last))
history_list =, first, last - first)
if history_list is None:
p = Errors.OidNotFound(dump(oid))
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