]> 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>
Fri, 15 Jun 2018 17:38:49 +0000 (12:38 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h

index 4a334b9194846afc5d33088a959addfebf9eb20f..a22360f25b555eeec970315b939c0e247824a1b5 100644 (file)
@@ -5212,7 +5212,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 a58f6cb8157cdde81c695fe998e12327adc0e5e2..df24a06442c3fd82a00c532563aceef49b473eb6 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 ce7d6e38ab22729946546497a12ac0585b99ba50..f1a938c7acb7e9258d389d07d72b9914174b94b6 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;