From: Jianpeng Ma Date: Fri, 22 Apr 2016 16:17:42 +0000 (+0800) Subject: os/bluestore/BlueFS: Record the correctly perfcouter. X-Git-Tag: v11.0.0~878^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d51528191d46a35bb03b8a725d1f39e54c664e32;p=ceph.git 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 --- 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