Merge pull request #6300 from XinzeChi/wip-throttle-max

common: fix reset max in Throttle using perf reset command

Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
Sage Weil 2015-11-09 09:04:25 -05:00
commit b5332742ad

View File

@ -42,8 +42,8 @@ Throttle::Throttle(CephContext *cct, const std::string& n, int64_t m, bool _use_
if (cct->_conf->throttler_perf_counter) {
PerfCountersBuilder b(cct, string("throttle-") + name, l_throttle_first, l_throttle_last);
b.add_u64_counter(l_throttle_val, "val", "Currently available throttle");
b.add_u64_counter(l_throttle_max, "max", "Max value for throttle");
b.add_u64(l_throttle_val, "val", "Currently available throttle");
b.add_u64(l_throttle_max, "max", "Max value for throttle");
b.add_u64_counter(l_throttle_get, "get", "Gets");
b.add_u64_counter(l_throttle_get_sum, "get_sum", "Got data");
b.add_u64_counter(l_throttle_get_or_fail_fail, "get_or_fail_fail", "Get blocked during get_or_fail");