Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Using sharded locks instead of a global lock for Timers #6534
Using sharded locks instead of a global lock for Timers #6534
Changes from 23 commits
ee626f5
ed42fae
1915c57
3f9a443
5954e4f
565432b
71bb30c
8bf56ca
e4288c6
7cdddd6
178baeb
2de08f2
c808e81
11ce15a
1d309bf
256c279
6c8aa23
1fb35c9
2497479
18dd900
fea8e32
5ecfd75
f7b36cb
16ff7ae
b5d8ca1
ba8fc74
4a2c88e
c069805
5e3d1b5
8ca8ddb
0c408f0
71fd4ff
b687274
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This sounds like a getter for a value that is already created, but actually it is the logic for figuring out which shard to use for a new timer. Can we rename this, and perhaps move it to a stand-alone function instead of a method on
TimerEntry
. Otherwise I am worried that someone will call it and expect it to return the same value as what theTimerShared
is using.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.
Thanks for this CR. I would like to make it not a method of
TimerEntry
, and rename it togenerate_shard_id
.