From 0b9734230107dc59666be4cfd866c9ac7e121b46 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Mon, 11 Sep 2017 21:34:57 +0800 Subject: [PATCH] os/bluestore/BlueFS: Don't call debug related code under any condition. Signed-off-by: Jianpeng Ma --- src/os/bluestore/BlueFS.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 24d4a4ef7dd44..33561406c3764 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()) { -- 2.39.5