]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix global commit latency 12356/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Dec 2016 07:29:57 +0000 (15:29 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Dec 2016 07:37:10 +0000 (15:37 +0800)
"start" is used to calculate the global bluestore commit latency
and hence shall not be updated at each internal state enter/exit.

Otherwise the l_bluestore_commit_lat counter won't reflect the
real commit latency precisely.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.h

index 0c4c6420edbe05846f66936296f837702e4ba4f1..07fe50bc0b89f1ee1c0e05646d1d3aff77f0c727 100644 (file)
@@ -1204,7 +1204,6 @@ public:
       utime_t lat, now = ceph_clock_now(g_ceph_context);
       lat = now - last_stamp;
       logger->tinc(state, lat);
-      start = now;
       last_stamp = now;
     }