File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/crimson/os/seastore/btree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -511,6 +511,8 @@ class FixedKVBtree {
511511 &child_node);
512512 } else {
513513 if (i->get_val ().pladdr .is_laddr ()) {
514+ assert (!node->children [i->get_offset ()] ||
515+ is_reserved_ptr (node->children [i->get_offset ()]));
514516 continue ;
515517 }
516518 ret = c.trans .get_extent (
@@ -586,7 +588,7 @@ class FixedKVBtree {
586588 : true );
587589 }
588590 }
589- if (child == get_reserved_ptr ( )) {
591+ if (is_reserved_ptr (child )) {
590592 if constexpr (
591593 !std::is_base_of_v<typename internal_node_t ::base_t ,
592594 child_node_t >) {
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ struct FixedKVNode : ChildableCachedExtent {
130130 children[offset] = child;
131131 set_child_ptracker (child);
132132 } else {
133- // this can only happen when reserving lba spaces
133+ // this can happen when reserving lba spaces and cloning mappings
134134 ceph_assert (is_leaf_and_has_children ());
135135 // this is to avoid mistakenly copying pointers from
136136 // copy sources when committing this lba node, because
You can’t perform that action at this time.
0 commit comments