From 025085ccb58256425deb915aa64e65082555c204 Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Tue, 2 Aug 2022 13:45:06 -0700 Subject: [PATCH] Fix GlobalTagThrottler::addRequests --- fdbserver/GlobalTagThrottler.actor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fdbserver/GlobalTagThrottler.actor.cpp b/fdbserver/GlobalTagThrottler.actor.cpp index 0c708da777..880d5da216 100644 --- a/fdbserver/GlobalTagThrottler.actor.cpp +++ b/fdbserver/GlobalTagThrottler.actor.cpp @@ -381,9 +381,7 @@ class GlobalTagThrottlerImpl { public: GlobalTagThrottlerImpl(Database db, UID id) : db(db), id(id) {} Future monitorThrottlingChanges() { return monitorThrottlingChanges(this); } - void addRequests(TransactionTag tag, int count) { - tagStatistics[tag].addTransactions(static_cast(count) / CLIENT_KNOBS->READ_TAG_SAMPLE_RATE); - } + void addRequests(TransactionTag tag, int count) { tagStatistics[tag].addTransactions(static_cast(count)); } uint64_t getThrottledTagChangeId() const { return throttledTagChangeId; } PrioritizedTransactionTagMap getClientRates() { PrioritizedTransactionTagMap result;