]> git.apps.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:32:21 +0000 (14:32 -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 a0e6b6eefd8f74ca19ed4c354eb754c2fb22ba63..aa3e212919a78b2aaa4339f08f80a00ac5664b0e 100644 (file)
@@ -5223,7 +5223,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 1ad0e0ce592cf74433ced85982c79eaac4da46e4..3aef97fd121f15a76a1b260f4fda94cc196d75fe 100644 (file)
@@ -94,6 +94,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 805f10e3aa2993f92841ebf78ef7173784e1d8bd..eaad4eb22235212808ab5cd6c9dd91be5e25bfa5 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);
+
 /// pextent: physical extent
 struct bluestore_pextent_t {
   static const uint64_t INVALID_OFFSET = ~0ull;