From: Sage Weil Date: Thu, 13 Oct 2016 19:22:24 +0000 (-0400) Subject: os/bluestore: simplify blob print if !compressed X-Git-Tag: v11.1.0~638^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=678be45532d5d0b82119b0f7b43a499220f4f356;p=ceph.git os/bluestore: simplify blob print if !compressed Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/bluestore_types.cc b/src/os/bluestore/bluestore_types.cc index d09490e9bf5d..3976bad5ab30 100644 --- a/src/os/bluestore/bluestore_types.cc +++ b/src/os/bluestore/bluestore_types.cc @@ -557,11 +557,13 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o) if (o.sbid) { out << " sbid 0x" << std::hex << o.sbid << std::dec; } - out << " clen 0x" << std::hex - << o.compressed_length_orig - << " -> 0x" - << o.compressed_length - << std::dec; + if (o.is_compressed()) { + out << " clen 0x" << std::hex + << o.compressed_length_orig + << " -> 0x" + << o.compressed_length + << std::dec; + } if (o.flags) { out << " " << o.get_flags_string(); }