]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: print correctly info.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 28 Aug 2019 01:07:41 +0000 (09:07 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 28 Aug 2019 01:07:41 +0000 (09:07 +0800)
kv_committing/deferred_stable already be cleared when print debug messages.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueStore.cc

index a936d445be59b14b88be94267836e5aec724b839..9a613e57d9163842c4d7c2afd30a3fa26b038989 100644 (file)
@@ -10987,6 +10987,9 @@ void BlueStore::_kv_sync_thread()
       int r = cct->_conf->bluestore_debug_omit_kv_commit ? 0 : db->submit_transaction_sync(synct);
       ceph_assert(r == 0);
 
+      int committing_size = kv_committing.size();
+      int deferred_size = deferred_stable.size();
+
       {
        std::unique_lock m{kv_finalize_lock};
        if (kv_committing_to_finalize.empty()) {
@@ -11027,8 +11030,8 @@ void BlueStore::_kv_sync_thread()
        ceph::timespan dur_flush = after_flush - start;
        ceph::timespan dur_kv = finish - after_flush;
        ceph::timespan dur = finish - start;
-       dout(20) << __func__ << " committed " << kv_committing.size()
-         << " cleaned " << deferred_stable.size()
+       dout(20) << __func__ << " committed " << committing_size
+         << " cleaned " << deferred_size
          << " in " << dur
          << " (" << dur_flush << " flush + " << dur_kv << " kv commit)"
          << dendl;