From: xie xingguo Date: Fri, 22 Jan 2016 10:00:08 +0000 (+0800) Subject: BlueFS: fix unprecise calculation of sync interval X-Git-Tag: v10.0.4~57^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a3789e8cef4f7bfbc84ba3055a78baeca42c9fc8;p=ceph.git BlueFS: fix unprecise calculation of sync interval Signed-off-by: xie xingguo --- 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(