-
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/state/snapshot: clarify comment #23305
Conversation
core/state/snapshot/snapshot.go
Outdated
// and will be reconstructed from scratch based on the tries in the key-value | ||
// store, on a background thread. If the memory layers from the journal is not | ||
// continuous with disk layer or the journal is missing, all diffs will be discarded | ||
// iff it's in "recovery" mode, otherwise rebuild is mandatory. | ||
// if it's in "recovery" mode, otherwise rebuild is mandatory. |
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.
iff
usually means if and only if
. Not sure if that's the case here, but probably.
Funny, because it's the second time in a short span of time that someone has tried to fix this word :)
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.
you learn something new every day. thanks!
iff seems right. amended.
The comment is outdated. The stale/wrong snapshot won't be deleted but be reused during the rebuilding. |
So.. what should the comment say, exactly? |
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.
👍
…23305) Co-authored-by: Tyler Chambers <me@tylerchambers.net> Co-authored-by: Felix Lange <fjl@twurst.com>
Small fix to clarify what is deleted.
Fixes: #23298