]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: log kv transaction in queue latency
authorHaomai Wang <haomai@xsky.com>
Tue, 20 Sep 2016 02:21:31 +0000 (10:21 +0800)
committerHaomai Wang <haomai@xsky.com>
Tue, 20 Sep 2016 14:20:45 +0000 (22:20 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/bluestore/BlueStore.cc

index ce8ab1c9f555c8836e46b69df4ba3841d0cadd96..9f87e79d5aeeb402a9f450d8c9e6cb3a2a26b62a 100644 (file)
@@ -5847,7 +5847,7 @@ void BlueStore::_txc_state_proc(TransContext *txc)
       }
       return;
     case TransContext::STATE_KV_QUEUED:
-      txc->log_state_latency(logger, l_bluestore_state_kv_queued_lat);
+      txc->log_state_latency(logger, l_bluestore_state_kv_committing_lat);
       txc->state = TransContext::STATE_KV_DONE;
       _txc_finish_kv(txc);
       // ** fall-thru **
@@ -6193,6 +6193,7 @@ void BlueStore::_kv_sync_thread()
          if (txc->last_blobid > high_blobid) {
            high_blobid = txc->last_blobid;
          }
+          txc->log_state_latency(logger, l_bluestore_state_kv_queued_lat);
        }
        if (!kv_committing.empty()) {
          TransContext *first_txc = kv_committing.front();