-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve the throttle function (#2991)
Descriptions of the changes in this PR: ### Motivation improve the throttle function : old pr: #2778 1. duplicate definition for replicationRateByBytes 2.make sure this update safety when different callback run averageEntrySize updating ### Changes 1.clean code for duplicate definition for replicationRateByBytes 2.add a lock to make sure data safety for updateAverageEntrySize
- Loading branch information
1 parent
a3b60db
commit 7f31748
Showing
4 changed files
with
31 additions
and
50 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