Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
neoppod
Commits
6da59ae8
Commit
6da59ae8
authored
Oct 12, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: fix crash when a corruption is found while checking TIDs
parent
9bd14bf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
neo/storage/checker.py
neo/storage/checker.py
+2
-3
No files found.
neo/storage/checker.py
View file @
6da59ae8
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment