From: Jianpeng Ma Date: Mon, 11 Sep 2017 13:34:57 +0000 (+0800) Subject: os/bluestore/BlueFS: Don't call debug related code under any condition. X-Git-Tag: v13.0.1~923^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17627%2Fhead;p=ceph.git os/bluestore/BlueFS: Don't call debug related code under any condition. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 24d4a4ef7dd4..33561406c376 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -1675,9 +1675,7 @@ void BlueFS::wait_for_aio(FileWriter *h) p->aio_wait(); } } - utime_t end = ceph_clock_now(); - utime_t dur = end - start; - dout(10) << __func__ << " " << h << " done in " << dur << dendl; + dout(10) << __func__ << " " << h << " done in " << (ceph_clock_now() - start) << dendl; } int BlueFS::_flush(FileWriter *h, bool force) @@ -1897,9 +1895,7 @@ void BlueFS::sync_metadata() alloc[i]->release(p.get_start(), p.get_len()); } } - utime_t end = ceph_clock_now(); - utime_t dur = end - start; - dout(10) << __func__ << " done in " << dur << dendl; + dout(10) << __func__ << " done in " << (ceph_clock_now() - start) << dendl; } if (_should_compact_log()) {