mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
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:
parent
eb491a13dc
commit
9466f2ebb6
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user