From 1f134d1534d703b19e29e62c290f81ee6b2fa712 Mon Sep 17 00:00:00 2001 From: XiaoxiWang <xiaoxi.wang@snowflake.com> Date: Fri, 21 Aug 2020 05:06:13 +0000 Subject: [PATCH] format --- fdbserver/Ratekeeper.actor.cpp | 4 ++-- fdbserver/Status.actor.cpp | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fdbserver/Ratekeeper.actor.cpp b/fdbserver/Ratekeeper.actor.cpp index f28db95a8f..6ef9904f26 100644 --- a/fdbserver/Ratekeeper.actor.cpp +++ b/fdbserver/Ratekeeper.actor.cpp @@ -1213,8 +1213,8 @@ void updateRate(RatekeeperData* self, RatekeeperLimits* limits) { .detail("WorstStorageServerDurabilityLag", worstDurabilityLag) .detail("LimitingStorageServerDurabilityLag", limitingDurabilityLag) .detail("TagsAutoThrottled", self->throttledTags.autoThrottleCount()) - .detail("TagsAutoThrottledBusyRead", self->throttledTags.busyReadTagCount) - .detail("TagsAutoThrottledBusyWrite", self->throttledTags.busyWriteTagCount) + .detail("TagsAutoThrottledBusyRead", self->throttledTags.busyReadTagCount) + .detail("TagsAutoThrottledBusyWrite", self->throttledTags.busyWriteTagCount) .detail("TagsManuallyThrottled", self->throttledTags.manualThrottleCount()) .detail("AutoThrottlingEnabled", self->autoThrottlingEnabled) .trackLatest(name); diff --git a/fdbserver/Status.actor.cpp b/fdbserver/Status.actor.cpp index bd0350a900..5dd16ed5b4 100644 --- a/fdbserver/Status.actor.cpp +++ b/fdbserver/Status.actor.cpp @@ -1784,22 +1784,22 @@ ACTOR static Future<JsonBuilderObject> workloadStatusFetcher(Reference<AsyncVar< JsonBuilderObject throttledTagsObj; JsonBuilderObject autoThrottledTagsObj, recommendThrottleTagsObj; if(autoThrottlingEnabled) { - autoThrottledTagsObj["count"] = autoThrottledTags; + autoThrottledTagsObj["count"] = autoThrottledTags; autoThrottledTagsObj["busy_read"] = autoThrottledTagsBusyRead; autoThrottledTagsObj["busy_write"] = autoThrottledTagsBusyWrite; - recommendThrottleTagsObj["count"] = 0; + recommendThrottleTagsObj["count"] = 0; recommendThrottleTagsObj["busy_read"] = 0; recommendThrottleTagsObj["busy_write"] = 0; } else { - recommendThrottleTagsObj["count"] = autoThrottledTags; - recommendThrottleTagsObj["busy_read"] = autoThrottledTagsBusyRead; - recommendThrottleTagsObj["busy_write"] = autoThrottledTagsBusyWrite; + recommendThrottleTagsObj["count"] = autoThrottledTags; + recommendThrottleTagsObj["busy_read"] = autoThrottledTagsBusyRead; + recommendThrottleTagsObj["busy_write"] = autoThrottledTagsBusyWrite; - autoThrottledTagsObj["count"] = 0; - autoThrottledTagsObj["busy_read"] = 0; - autoThrottledTagsObj["busy_write"] = 0; + autoThrottledTagsObj["count"] = 0; + autoThrottledTagsObj["busy_read"] = 0; + autoThrottledTagsObj["busy_write"] = 0; } throttledTagsObj["auto"] = autoThrottledTagsObj;