From a3789e8cef4f7bfbc84ba3055a78baeca42c9fc8 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Fri, 22 Jan 2016 18:00:08 +0800 Subject: [PATCH] BlueFS: fix unprecise calculation of sync interval Signed-off-by: xie xingguo --- src/os/bluestore/BlueFS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index d10ee677ecc28..ad676759bde30 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -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( -- 2.39.5