]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore/BlueFS: Record the correctly perfcouter.
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 22 Apr 2016 16:17:42 +0000 (00:17 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 22 Apr 2016 16:28:07 +0000 (00:28 +0800)
After "log_writer->append(bl)", the length of bl become zero.
So tune the order.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueFS.cc

index 41ae52a4d2c71e81eaea154a7c951933cc04e2b1..5a24f13bb16ce0986e752262801ed62c41768d5e 100644 (file)
@@ -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