]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix compression algorithm logging output
authorIgor Fedotov <ifedotov@mirantis.com>
Tue, 2 Aug 2016 22:03:31 +0000 (01:03 +0300)
committerIgor Fedotov <ifedotov@mirantis.com>
Wed, 19 Oct 2016 14:33:29 +0000 (14:33 +0000)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/BlueStore.cc

index 91576a754d7dd084497403bfd8217cd6e4b52e64..68f74d87bd9c78773106654561cedffcdcd3b298 100644 (file)
@@ -7614,7 +7614,7 @@ int BlueStore::_do_alloc_write(
        logger->inc(l_bluestore_write_pad_bytes, newlen - rawlen);
        dout(20) << __func__ << std::hex << "  compressed 0x" << wi.blob_length
                 << " -> 0x" << rawlen << " => 0x" << newlen
-                << " with " << (int)chdr.type
+                << " with " << c->get_type()
                 << std::dec << dendl;
        txc->statfs_delta.compressed() += rawlen;
        txc->statfs_delta.compressed_original() += l->length();
@@ -7629,7 +7629,7 @@ int BlueStore::_do_alloc_write(
       } else {
        dout(20) << __func__ << std::hex << "  0x" << l->length()
                 << " compressed to 0x" << rawlen << " -> 0x" << newlen
-                 << " with " << (int)chdr.type
+                 << " with " << c->get_type()
                  << ", which is more than required 0x" << want_len_raw
                 << " -> 0x" << want_len
                  << ", leaving uncompressed"