]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: end scope of std::hex properly
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Sep 2016 03:33:25 +0000 (11:33 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Sep 2016 03:33:25 +0000 (11:33 +0800)
So it does not extend to the following output stream and
causes unexpected behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 1cb20155b4e9b5afe814769fc38594d55133bc6a..e24dda5f7f017edeacac6f265ebb22b2b3897e53 100644 (file)
@@ -906,7 +906,8 @@ void BlueStore::BufferSpace::_clear()
 int BlueStore::BufferSpace::_discard(uint64_t offset, uint64_t length)
 {
   // note: we already hold cache->lock
-  dout(20) << __func__ << std::hex << " 0x" << offset << "~" << length << dendl;
+  dout(20) << __func__ << std::hex << " 0x" << offset << "~" << length
+           << std::dec << dendl;
   int cache_private = 0;
   cache->_audit("discard start");
   auto i = _data_lower_bound(offset);