]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/btree: clean up: add print_detail method for btree leaf nodes
authorXuehan Xu <xxhdx1985126@gmail.com>
Sun, 27 Mar 2022 07:44:00 +0000 (15:44 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Sat, 7 May 2022 05:13:38 +0000 (13:13 +0800)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/btree/fixed_kv_node.h

index c1cde15c90a107bc92dd88c1eb3f86d1234fbc36..b23603c0f6992375d7bd3f4d7e36c5e4a9b0baa0 100644 (file)
@@ -425,6 +425,12 @@ struct FixedKVLeafNode
     this->resolve_relative_addrs(base);
   }
 
+  std::ostream &print_detail(std::ostream &out) const
+  {
+    return out << ", size=" << this->get_size()
+              << ", meta=" << this->get_meta();
+  }
+
   constexpr static size_t get_min_capacity() {
     return (node_layout_t::get_capacity() - 1) / 2;
   }