-
Notifications
You must be signed in to change notification settings - Fork 37.8k
validation: Add missing cs_{LastBlockFile,nBlockSequenceId} locks in PruneAndFlush() and UnloadBlockIndex(). Add missing locking annotations. #15191
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
Conversation
a1b22ec
to
a17a089
Compare
@MarcoFalke Could this one get a release milestone? :-) |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
a17a089
to
434c356
Compare
Rebased! |
@MarcoFalke Should this locking PR be closed? Please advice. |
Concept ACK |
… UnloadBlockIndex(). Add missing locking annotation for nLastBlockFile and fCheckForPruning.
…). Add missing locking annotation for nBlockSequenceId.
434c356
to
575720c
Compare
Needs rebase |
Wondering if this change is still necessary and conceptually sound? |
I haven't looked at this since closing, but IIRC I closed it due to lack of progress only (only one Concept ACK over seven months 😢 ). Feel free to pick it up: I'd be glad to review :) |
cs_LastBlockFile
locks inPruneAndFlush()
andUnloadBlockIndex()
.nLastBlockFile
andfCheckForPruning
.nBlockSequenceId
which is guarded bycs_nBlockSequenceId
.cs_nBlockSequenceId
lock inUnloadBlockIndex()
.