From d51528191d46a35bb03b8a725d1f39e54c664e32 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Sat, 23 Apr 2016 00:17:42 +0800 Subject: [PATCH] os/bluestore/BlueFS: Record the correctly perfcouter. After "log_writer->append(bl)", the length of bl become zero. So tune the order. Signed-off-by: Jianpeng Ma --- src/os/bluestore/BlueFS.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 41ae52a4d2c7..5a24f13bb16c 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -994,10 +994,10 @@ int BlueFS::_flush_log() // pad to block boundary _pad_bl(bl); - log_writer->append(bl); - logger->inc(l_bluefs_logged_bytes, bl.length()); + log_writer->append(bl); + log_t.clear(); log_t.seq = 0; // just so debug output is less confusing -- 2.47.3