Fix GlobalTagThrottler::addRequests

This commit is contained in:
sfc-gh-tclinkenbeard 2022-08-02 13:45:06 -07:00
parent 88e54eec5c
commit 025085ccb5
1 changed files with 1 additions and 3 deletions

View File

@ -381,9 +381,7 @@ class GlobalTagThrottlerImpl {
public:
GlobalTagThrottlerImpl(Database db, UID id) : db(db), id(id) {}
Future<Void> monitorThrottlingChanges() { return monitorThrottlingChanges(this); }
void addRequests(TransactionTag tag, int count) {
tagStatistics[tag].addTransactions(static_cast<double>(count) / CLIENT_KNOBS->READ_TAG_SAMPLE_RATE);
}
void addRequests(TransactionTag tag, int count) { tagStatistics[tag].addTransactions(static_cast<double>(count)); }
uint64_t getThrottledTagChangeId() const { return throttledTagChangeId; }
PrioritizedTransactionTagMap<ClientTagThrottleLimits> getClientRates() {
PrioritizedTransactionTagMap<ClientTagThrottleLimits> result;