]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Throttle: change description about throttle val 39638/head
authorhaoyixing <haoyixing@kuaishou.com>
Tue, 23 Feb 2021 10:03:44 +0000 (10:03 +0000)
committerhaoyixing <haoyixing@kuaishou.com>
Tue, 23 Feb 2021 10:22:09 +0000 (10:22 +0000)
l_throttle_val indicates current used count, not available.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
src/common/Throttle.cc

index 2e5b3459c39180b55cd717d61e38539e43bf39e2..5c45e9456c0be2e30ab63745fd1530c579faab38 100644 (file)
@@ -53,7 +53,7 @@ Throttle::Throttle(CephContext *cct, const std::string& n, int64_t m,
 
   if (cct->_conf->throttler_perf_counter) {
     PerfCountersBuilder b(cct, string("throttle-") + name, l_throttle_first, l_throttle_last);
-    b.add_u64(l_throttle_val, "val", "Currently available throttle");
+    b.add_u64(l_throttle_val, "val", "Currently taken slots");
     b.add_u64(l_throttle_max, "max", "Max value for throttle");
     b.add_u64_counter(l_throttle_get_started, "get_started", "Number of get calls, increased before wait");
     b.add_u64_counter(l_throttle_get, "get", "Gets");