-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver/closedts: optimize sidetransport closer
The sidetransport sender periodically loops through all the tracked ranges and checks if it can advance their closedts. This patch makes the hot loop a little more efficient by collapsing two operations that used to take the replica lock separately: getting its descriptor and checking the bump. Also another small change - learners are considered among the followers or a range that need closed ts communicated to them. There was no good reason to exclude them, and including them is a bit more efficient. Release note: None Release justification: Improvement to very new functionality.
- Loading branch information
1 parent
934b872
commit 0343413
Showing
4 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters