]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: print cnode from _open_collections
authorSage Weil <sage@redhat.com>
Thu, 14 Jun 2018 19:15:20 +0000 (14:15 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Jun 2018 19:41:13 +0000 (14:41 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit b308b6b1554b3203e02e64e3963ef4901274f23f)

src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h

index d9465e00adc4c198d8ba52daadacfcb867f784dc..5928f5846b3ce214ec1d8ab7b56084a118a987ae 100644 (file)
@@ -5025,7 +5025,8 @@ int BlueStore::_open_collections(int *errors)
              << pretty_binary_string(it->key()) << dendl;
         return -EIO;
       }   
-      dout(20) << __func__ << " opened " << cid << " " << c << dendl;
+      dout(20) << __func__ << " opened " << cid << " " << c
+              << " " << c->cnode << dendl;
       coll_map[cid] = c;
     } else {
       derr << __func__ << " unrecognized collection " << it->key() << dendl;
index 06f64d21d4b34b318525f464af2fa29ddec1ef48..4c0a5f77bf34188c8571c8ec36a2220fd77f2224 100644 (file)
@@ -116,6 +116,11 @@ void bluestore_cnode_t::generate_test_instances(list<bluestore_cnode_t*>& o)
   o.push_back(new bluestore_cnode_t(123));
 }
 
+ostream& operator<<(ostream& out, const bluestore_cnode_t& l)
+{
+  return out << "cnode(bits " << l.bits << ")";
+}
+
 // bluestore_extent_ref_map_t
 
 void bluestore_extent_ref_map_t::_check() const
index c2c0e39a089dc77e694e7938a0feabc4ae9c3998..bb57242ba3abe68d54ba93e882f7f9bc91f0669a 100644 (file)
@@ -64,6 +64,8 @@ struct bluestore_cnode_t {
 };
 WRITE_CLASS_DENC(bluestore_cnode_t)
 
+ostream& operator<<(ostream& out, const bluestore_cnode_t& l);
+
 class AllocExtent;
 typedef mempool::bluestore_alloc::vector<AllocExtent> AllocExtentVector;
 class AllocExtent {