diff --git a/src/include/homestore/btree/detail/simple_node.hpp b/src/include/homestore/btree/detail/simple_node.hpp index 7fec13071..b8149374c 100644 --- a/src/include/homestore/btree/detail/simple_node.hpp +++ b/src/include/homestore/btree/detail/simple_node.hpp @@ -229,9 +229,11 @@ class SimpleNode : public VariantNode< K, V > { std::string to_string_keys(bool print_friendly = false) const override { #if 0 std::string delimiter = print_friendly ? "\n" : "\t"; + auto str = fmt::format("{}{}.{} nEntries={} {} ", auto str = fmt::format("{}{}.{} nEntries={} {} ", print_friendly ? "------------------------------------------------------------\n" : "", this->node_id(), this->link_version(), this->total_entries(), (this->is_leaf() ? "LEAF" : "INTERIOR")); + this->node_id(), this->link_version(), this->total_entries(), (this->is_leaf() ? "LEAF" : "INTERIOR")); if (!this->is_leaf() && (this->has_valid_edge())) { fmt::format_to(std::back_inserter(str), "edge_id={}.{}", this->edge_info().m_bnodeid, this->edge_info().m_link_version); @@ -243,7 +245,7 @@ class SimpleNode : public VariantNode< K, V > { if (!this->is_leaf()) { fmt::format_to(std::back_inserter(str), " ["); for (uint32_t i{0}; i < this->total_entries(); ++i) { - uint32_t cur_key = BtreeNode::gget_nth_key< K >(i, false).key(); + uint32_t cur_key = BtreeNode::get_nth_key< K >(i, false).key(); BtreeLinkInfo child_info; get_nth_value(i, &child_info, false /* copy */); fmt::format_to(std::back_inserter(str), "{}.{} {}", cur_key, child_info.link_version(), i == this->total_entries() - 1 ? "" : ", "); diff --git a/src/include/homestore/btree/detail/varlen_node.hpp b/src/include/homestore/btree/detail/varlen_node.hpp index e31fbe99e..d7c8fcd01 100644 --- a/src/include/homestore/btree/detail/varlen_node.hpp +++ b/src/include/homestore/btree/detail/varlen_node.hpp @@ -517,9 +517,11 @@ class VariableNode : public VariantNode< K, V > { std::string to_string_keys(bool print_friendly = false) const override { #if 0 std::string delimiter = print_friendly ? "\n" : "\t"; + auto str = fmt::format("{}{}.{} nEntries={} {} ", auto str = fmt::format("{}{}.{} nEntries={} {} ", print_friendly ? "------------------------------------------------------------\n" : "", this->node_id(), this->link_version(), this->total_entries(), (this->is_leaf() ? "LEAF" : "INTERIOR")); + this->node_id(), this->link_version(), this->total_entries(), (this->is_leaf() ? "LEAF" : "INTERIOR")); if (!this->is_leaf() && (this->has_valid_edge())) { fmt::format_to(std::back_inserter(str), "edge_id={}.{}", this->edge_info().m_bnodeid, this->edge_info().m_link_version);