From 1747d497891cc450519cf16db548e574df1cbb6f Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Thu, 6 Oct 2016 16:44:30 +0800 Subject: [PATCH] os/bluestore: fix counter of l_bluestore_write_big_bytes Signed-off-by: xie xingguo --- src/os/bluestore/BlueStore.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index cff11c5e0f847..6f68436181e49 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7453,9 +7453,11 @@ void BlueStore::_do_write_big( WriteContext *wctx) { dout(10) << __func__ << " 0x" << std::hex << offset << "~" << length - << " target_blob_size 0x" << wctx->target_blob_size + << " target_blob_size 0x" << wctx->target_blob_size << std::dec << " compress " << (int)wctx->compress - << std::dec << dendl; + << dendl; + logger->inc(l_bluestore_write_big); + logger->inc(l_bluestore_write_big_bytes, length); while (length > 0) { BlobRef b = c->new_blob(); auto l = MIN(wctx->target_blob_size, length); @@ -7471,8 +7473,6 @@ void BlueStore::_do_write_big( length -= l; logger->inc(l_bluestore_write_big_blobs); } - logger->inc(l_bluestore_write_big); - logger->inc(l_bluestore_write_big_bytes, length); } int BlueStore::_do_alloc_write( -- 2.39.5