From 3fff41d4f37d3be13e11e20e896cbcc9a7b993b9 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Tue, 20 Sep 2016 10:21:31 +0800 Subject: [PATCH] os/bluestore: log kv transaction in queue latency Signed-off-by: Haomai Wang --- src/os/bluestore/BlueStore.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.47.3