mds/MDLog.cc Fix perf counter type for jlat

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>
This commit is contained in:
Xiaoxi Chen 2017-02-15 20:28:03 -07:00
parent eb491a13dc
commit 9466f2ebb6

View 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");