forked from apache/bookkeeper
-
Notifications
You must be signed in to change notification settings - Fork 4
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 (apache#2991)
Descriptions of the changes in this PR: improve the throttle function : old pr: apache#2778 1. duplicate definition for replicationRateByBytes 2.make sure this update safety when different callback run averageEntrySize updating 1.clean code for duplicate definition for replicationRateByBytes 2.add a lock to make sure data safety for updateAverageEntrySize (cherry picked from commit 7f31748)
- Loading branch information
1 parent
7267058
commit a13dfce
Showing
4 changed files
with
37 additions
and
45 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