]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: Don't call debug related code under any condition. 17627/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 11 Sep 2017 13:34:57 +0000 (21:34 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 11 Sep 2017 13:47:28 +0000 (21:47 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueFS.cc

index 24d4a4ef7dd44e32e9fd861b36b2617acce23bab..33561406c3764c62d0845416cdadda4132c07b9f 100644 (file)
@@ -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()) {