From: Haomai Wang Date: Tue, 20 Sep 2016 02:21:31 +0000 (+0800) Subject: os/bluestore: log kv transaction in queue latency X-Git-Tag: v11.0.1~99^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3fff41d4f37d3be13e11e20e896cbcc9a7b993b9;p=ceph.git os/bluestore: log kv transaction in queue latency Signed-off-by: Haomai Wang --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index ce8ab1c9f55..9f87e79d5ae 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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();