Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ratelimit: keep only local values in pipe->counter for SBT
Up until this commit, the SBT algorithm would keep in pipe->counter the sum between its local value, as well as the values gathered from the other servers in the cluster. This means that it would replicate the other's counters as well, leading to a broken behavior. This fix makes sure that the SBT algorithm only stores the local counter in the pipe->counter field, therefore it will not replicate other's counters. (cherry picked from commit 9621cac)
- Loading branch information
1 parent
d19b20e
commit ec0092d
Showing
1 changed file
with
11 additions
and
12 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