Commit 6da59ae8 authored by Julien Muchembled's avatar Julien Muchembled

storage: fix crash when a corruption is found while checking TIDs

parent 9bd14bf2
......@@ -184,7 +184,7 @@ class Checker(object):
return
try:
count, _, max_tid = args
except ValueError:
except ValueError: # AnswerCheckSerialRange
count, _, self.next_tid, _, max_oid = args
if count < CHECK_COUNT:
logging.debug("partition %u checked from %s to %s",
......@@ -192,8 +192,7 @@ class Checker(object):
self._nextPartition()
return
self.next_oid = add64(max_oid, 1)
else:
(count, _, max_tid), = answer_set
else: # AnswerCheckTIDRange
if count < CHECK_COUNT:
self.next_tid = self.min_tid
self.next_oid = ZERO_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