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);
|
&child_node);
|
||||||
} else {
|
} else {
|
||||||
if (i->get_val().pladdr.is_laddr()) {
|
if (i->get_val().pladdr.is_laddr()) {
|
||||||
|
assert(!node->children[i->get_offset()] ||
|
||||||
|
is_reserved_ptr(node->children[i->get_offset()]));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ret = c.trans.get_extent(
|
ret = c.trans.get_extent(
|
||||||
@ -586,7 +588,7 @@ public:
|
|||||||
: true);
|
: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (child == get_reserved_ptr()) {
|
if (is_reserved_ptr(child)) {
|
||||||
if constexpr(
|
if constexpr(
|
||||||
!std::is_base_of_v<typename internal_node_t::base_t,
|
!std::is_base_of_v<typename internal_node_t::base_t,
|
||||||
child_node_t>) {
|
child_node_t>) {
|
||||||
|
@ -130,7 +130,7 @@ struct FixedKVNode : ChildableCachedExtent {
|
|||||||
children[offset] = child;
|
children[offset] = child;
|
||||||
set_child_ptracker(child);
|
set_child_ptracker(child);
|
||||||
} else {
|
} 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());
|
ceph_assert(is_leaf_and_has_children());
|
||||||
// this is to avoid mistakenly copying pointers from
|
// this is to avoid mistakenly copying pointers from
|
||||||
// copy sources when committing this lba node, because
|
// copy sources when committing this lba node, because
|
||||||
|
Loading…
Reference in New Issue
Block a user