]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: formatting nits
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 31 Aug 2017 04:42:36 +0000 (12:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 1 Sep 2017 04:33:40 +0000 (12:33 +0800)
So we don't output anything if csum is currently off:

_do_alloc_write blob Blob(0x7fad7cc25950 blob([0x42a80000~10000] none/0x1)

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

index b4003b5b41702fc4eab5cdf43a18cc4e1b8afaa2..f3cbca7131d1118eb13683750db12c4b923458d5 100644 (file)
@@ -9923,7 +9923,7 @@ int BlueStore::_do_alloc_write(
       if ((suggested_boff % (1 << csum_order)) == 0 &&
            suggested_boff + final_length <= max_bsize &&
            suggested_boff > b_off) {
-        dout(20) << __func__ << " forcing blob_offset to "
+        dout(20) << __func__ << " forcing blob_offset to 0x"
                  << std::hex << suggested_boff << std::dec << dendl;
         assert(suggested_boff >= b_off);
         csum_length += suggested_boff - b_off;
index 659f3e5bcc06823b35fa866b40c435988867829e..9fb7ce84b626f00bcc28fc5e9074600eddebf8f2 100644 (file)
@@ -674,7 +674,7 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o)
   if (o.flags) {
     out << " " << o.get_flags_string();
   }
-  if (o.csum_type) {
+  if (o.has_csum()) {
     out << " " << Checksummer::get_csum_type_string(o.csum_type)
        << "/0x" << std::hex << (1ull << o.csum_chunk_order) << std::dec;
   }