-
Notifications
You must be signed in to change notification settings - Fork 20.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core/rawdb: db inspect move 'config' and 'shutdown' into 'meta data' #22978
Conversation
@@ -369,8 +370,6 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error { | |||
bytes.HasPrefix(key, []byte("bltIndex-")) || | |||
bytes.HasPrefix(key, []byte("bltRoot-")): // Bloomtrie sub | |||
bloomTrieNodes.Add(size) | |||
case bytes.Equal(key, uncleanShutdownKey): | |||
shutdownInfo.Add(size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also count it in the meta.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been counted in the default
😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for catching it!
LGTM, but the linter complains:
It needs a |
unaccounted stat | ||
shutdownInfo stat | ||
metadata stat | ||
unaccounted stat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I didn't modify these two line, how would this happen?😂
…thereum#22978) * core/rawdb: db inspect move 'config' and 'shutdown' into 'meta data' * gofmt
Avoid the error message of Database contains
unaccounted data