From: Guang Yang Date: Sat, 16 Jan 2016 00:37:11 +0000 (+0000) Subject: common: change the type of counter total/unhealthy_workers X-Git-Tag: v10.0.4~197^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7631ef3dc41202737b9637b86e1e0ef7a818571;p=ceph.git common: change the type of counter total/unhealthy_workers Signed-off-by: Guang Yang --- diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc index 42595f59e382a..91d6b97d0c56c 100644 --- a/src/common/ceph_context.cc +++ b/src/common/ceph_context.cc @@ -617,8 +617,8 @@ PerfCountersCollection *CephContext::get_perfcounters_collection() void CephContext::enable_perf_counter() { PerfCountersBuilder plb(this, "cct", l_cct_first, l_cct_last); - plb.add_u64_counter(l_cct_total_workers, "total_workers", "Total workers"); - plb.add_u64_counter(l_cct_unhealthy_workers, "unhealthy_workers", "Unhealthy workers"); + plb.add_u64(l_cct_total_workers, "total_workers", "Total workers"); + plb.add_u64(l_cct_unhealthy_workers, "unhealthy_workers", "Unhealthy workers"); PerfCounters *perf_tmp = plb.create_perf_counters(); ceph_spin_lock(&_cct_perf_lock);