]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueFS: fix unprecise calculation of sync interval
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 22 Jan 2016 10:00:08 +0000 (18:00 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 3 Feb 2016 01:59:17 +0000 (09:59 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueFS.cc

index d10ee677ecc2898339bc2fa3d5bd6e621864c8b7..ad676759bde30d2b2fc83f4bcb1dadb7709a7eba 100644 (file)
@@ -1218,10 +1218,10 @@ void BlueFS::sync_metadata()
   for (auto p : alloc) {
     p->commit_finish();
   }
+  _maybe_compact_log();
   utime_t end = ceph_clock_now(NULL);
   utime_t dur = end - start;
   dout(10) << __func__ << " done in " << dur << dendl;
-  _maybe_compact_log();
 }
 
 int BlueFS::open_for_write(