From da468df6288b3437ba398e40deabfd90bab740d9 Mon Sep 17 00:00:00 2001 From: XiaoxiWang Date: Fri, 11 Sep 2020 07:22:54 +0000 Subject: [PATCH] fix unthrottle signal bug --- fdbclient/TagThrottle.actor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fdbclient/TagThrottle.actor.cpp b/fdbclient/TagThrottle.actor.cpp index 83c81dfa89..227dae9532 100644 --- a/fdbclient/TagThrottle.actor.cpp +++ b/fdbclient/TagThrottle.actor.cpp @@ -326,7 +326,6 @@ namespace ThrottleApi { loop { try { state Standalone tags = wait(tr.getRange(begin, end, 1000)); - state uint64_t unthrottledTags = 0; uint64_t manualUnthrottledTags = 0; for(auto tag : tags) { if(onlyExpiredThrottles) { @@ -353,7 +352,7 @@ namespace ThrottleApi { wait(updateThrottleCount(&tr, -manualUnthrottledTags)); } - if(unthrottledTags > 0) { + if(removed) { signalThrottleChange(tr); }