]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: simplify blob print if !compressed
authorSage Weil <sage@redhat.com>
Thu, 13 Oct 2016 19:22:24 +0000 (15:22 -0400)
committerSage Weil <sage@redhat.com>
Thu, 13 Oct 2016 19:46:17 +0000 (15:46 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/bluestore_types.cc

index d09490e9bf5d955d9c7d30d746360d59ecd5a0cb..3976bad5ab30307f63dac4f93bd0e30fab969bfa 100644 (file)
@@ -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();
   }