From: Zhang Song Date: Mon, 12 May 2025 07:14:55 +0000 (+0800) Subject: crimson/os/seastore/FixedKVBtree: correct MAX_DEPTH X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fc8c8e6e3aef786fca2e40d381aa3325fb2180d5;p=ceph.git crimson/os/seastore/FixedKVBtree: correct MAX_DEPTH Signed-off-by: Zhang Song --- diff --git a/src/crimson/os/seastore/btree/btree_types.h b/src/crimson/os/seastore/btree/btree_types.h index 1a0d45fbc2a9e..e3e8ca1f7e6c9 100644 --- a/src/crimson/os/seastore/btree/btree_types.h +++ b/src/crimson/os/seastore/btree/btree_types.h @@ -19,8 +19,6 @@ struct op_context_t { Transaction &trans; }; -constexpr uint16_t MAX_FIXEDKVBTREE_DEPTH = 8; - template struct fixed_kv_node_meta_t { bound_t begin = min_max_t::min; diff --git a/src/crimson/os/seastore/btree/fixed_kv_btree.h b/src/crimson/os/seastore/btree/fixed_kv_btree.h index 61c0769a06da1..8cf870bceee1f 100644 --- a/src/crimson/os/seastore/btree/fixed_kv_btree.h +++ b/src/crimson/os/seastore/btree/fixed_kv_btree.h @@ -40,7 +40,7 @@ template < typename cursor_t, size_t node_size> class FixedKVBtree { - static constexpr size_t MAX_DEPTH = 16; + static constexpr size_t MAX_DEPTH = 8; using self_type = FixedKVBtree< node_key_t, node_val_t, @@ -1778,7 +1778,7 @@ private: c.trans, root_block)->template cast(); get_root().set_location(nroot->get_paddr()); get_root().set_depth(iter.get_depth()); - ceph_assert(get_root().get_depth() <= MAX_FIXEDKVBTREE_DEPTH); + ceph_assert(get_root().get_depth() <= MAX_DEPTH); set_root_node(nroot); }