diff --git a/fdbcli/ThrottleCommand.actor.cpp b/fdbcli/ThrottleCommand.actor.cpp index e23107b169..3909656eb9 100644 --- a/fdbcli/ThrottleCommand.actor.cpp +++ b/fdbcli/ThrottleCommand.actor.cpp @@ -178,14 +178,14 @@ ACTOR Future throttleCommandActor(Reference db, std::vector throttleType = TagThrottleType::MANUAL; @@ -242,11 +242,11 @@ ACTOR Future throttleCommandActor(Reference db, std::vector 0 || nextIndex == tokens.size() - 1) { + if (tagSet.size() > 0 || nextIndex == tokens.size() - 1) { is_error = true; continue; } - tags.addTag(tokens[nextIndex + 1]); + tagSet.addTag(tokens[nextIndex + 1]); nextIndex += 2; } } @@ -257,8 +257,8 @@ ACTOR Future throttleCommandActor(Reference db, std::vector 0) { - bool success = wait(ThrottleApi::unthrottleTags(db, tags, throttleType, priority)); + if (tagSet.size() > 0) { + bool success = wait(ThrottleApi::unthrottleTags(db, tagSet, throttleType, priority)); if (success) { printf("Unthrottled tag `%s'%s\n", tokens[3].toString().c_str(), priorityString.c_str()); } else {