-
Notifications
You must be signed in to change notification settings - Fork 38.7k
util: Get rid of RecursiveMutex in Get{Blocks,Data}Dir #19213
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
vasild
left a comment
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.
ACK f7f41a0
|
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. |
f7f41a0 to
0173e68
Compare
|
Reworked without introducing a new helper function. ping @vasild @promag @MarcoFalke |
vasild
left a comment
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.
Looks good.
The commit message reads just
util: Get rid of RecursiveMutex in Get{Blocks,Data}Dir
maybe it would be good to explain that we remove the recursive mutex by splitting it to two mutexes and ensuring they are always acquired in the same order.
This change removes the RecursiveMutex object by splitting it into two Mutex objects, and ensuring they are always acquired in the same order.
-BEGIN VERIFY SCRIPT- sed -i 's/pathCachedNetSpecific/g_datadir_path_cached_net_specific/' src/util/system.cpp sed -i 's/pathCached/g_datadir_path_cached/' src/util/system.cpp -END VERIFY SCRIPT-
0173e68 to
7b90f77
Compare
|
Updated 0173e68 -> 7b90f77 (pr19213.02 -> pr19213.03, diff):
|
vasild
left a comment
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.
ACK 7b90f77
|
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
|
Why close? |
It is incompatible with #21244. |
Another step on the way to replacing all of the
RecursiveMutexinstances with theMutexones.This PR removes the
RecursiveMutexobject by splitting it into twoMutexobjects, and ensuring they are always acquired in the same order.Related to #19303.