mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
Merge pull request #57828 from xxhdx1985126/wip-seastore-btree-better-ut-asserts
crimson/os/seastore/btree: improve lba pointer related UT checks Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
commit
6e63060450
@ -511,6 +511,8 @@ public:
|
||||
&child_node);
|
||||
} else {
|
||||
if (i->get_val().pladdr.is_laddr()) {
|
||||
assert(!node->children[i->get_offset()] ||
|
||||
is_reserved_ptr(node->children[i->get_offset()]));
|
||||
continue;
|
||||
}
|
||||
ret = c.trans.get_extent(
|
||||
@ -586,7 +588,7 @@ public:
|
||||
: true);
|
||||
}
|
||||
}
|
||||
if (child == get_reserved_ptr()) {
|
||||
if (is_reserved_ptr(child)) {
|
||||
if constexpr(
|
||||
!std::is_base_of_v<typename internal_node_t::base_t,
|
||||
child_node_t>) {
|
||||
|
@ -130,7 +130,7 @@ struct FixedKVNode : ChildableCachedExtent {
|
||||
children[offset] = child;
|
||||
set_child_ptracker(child);
|
||||
} else {
|
||||
// this can only happen when reserving lba spaces
|
||||
// this can happen when reserving lba spaces and cloning mappings
|
||||
ceph_assert(is_leaf_and_has_children());
|
||||
// this is to avoid mistakenly copying pointers from
|
||||
// copy sources when committing this lba node, because
|
||||
|
Loading…
Reference in New Issue
Block a user