]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDLog.cc Fix perf counter type for jlat 13449/head
authorXiaoxi Chen <xiaoxchen@ebay.com>
Thu, 16 Feb 2017 03:28:03 +0000 (20:28 -0700)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Thu, 16 Feb 2017 03:28:03 +0000 (20:28 -0700)
jlat (journal latency) should be PERFCOUNTER_TIME | PERFCOUNTER_LONGRUNAVG
instead of PERFCOUNTER_U64

Current code with PERFCOUNTER_U64 make PerfCounters::tinc return
directly thus jlat will always be zero.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
src/mds/MDLog.cc

index 87fe65c03fc58a446d32b2cba68f8433f4737789..3a864a7a7b5352796fb9f02712612d4762c69a89 100644 (file)
@@ -74,7 +74,7 @@ void MDLog::create_logger()
   plb.add_u64(l_mdl_expos, "expos", "Journaler xpire position");
   plb.add_u64(l_mdl_wrpos, "wrpos", "Journaler  write position");
   plb.add_u64(l_mdl_rdpos, "rdpos", "Journaler  read position");
-  plb.add_u64(l_mdl_jlat, "jlat", "Journaler flush latency");
+  plb.add_time_avg(l_mdl_jlat, "jlat", "Journaler flush latency");
 
   plb.add_u64_counter(l_mdl_replayed, "replayed", "Events replayed");