Skip to content

Commit c6a5554

Browse files
zhscnMatan-B
authored andcommitted
crimson/os/seastore/FixedKVBtree: correct MAX_DEPTH
Signed-off-by: Zhang Song <[email protected]> (cherry picked from commit fc8c8e6)
1 parent 2ea43ec commit c6a5554

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/crimson/os/seastore/btree/btree_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ struct op_context_t {
1919
Transaction &trans;
2020
};
2121

22-
constexpr uint16_t MAX_FIXEDKVBTREE_DEPTH = 8;
23-
2422
template <typename bound_t>
2523
struct fixed_kv_node_meta_t {
2624
bound_t begin = min_max_t<bound_t>::min;

src/crimson/os/seastore/btree/fixed_kv_btree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ template <
4040
typename cursor_t,
4141
size_t node_size>
4242
class FixedKVBtree {
43-
static constexpr size_t MAX_DEPTH = 16;
43+
static constexpr size_t MAX_DEPTH = 8;
4444
using self_type = FixedKVBtree<
4545
node_key_t,
4646
node_val_t,
@@ -1778,7 +1778,7 @@ class FixedKVBtree {
17781778
c.trans, root_block)->template cast<RootBlock>();
17791779
get_root().set_location(nroot->get_paddr());
17801780
get_root().set_depth(iter.get_depth());
1781-
ceph_assert(get_root().get_depth() <= MAX_FIXEDKVBTREE_DEPTH);
1781+
ceph_assert(get_root().get_depth() <= MAX_DEPTH);
17821782
set_root_node(nroot);
17831783
}
17841784

0 commit comments

Comments
 (0)