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