crimson/os/seastore/btree: misc consolidations

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
This commit is contained in:
Xuehan Xu 2024-02-29 14:06:35 +08:00
parent fecf501c41
commit 72d721ad72
2 changed files with 11 additions and 0 deletions

View File

@ -592,6 +592,15 @@ public:
: true);
}
}
} else if (child == get_reserved_ptr()) {
if constexpr(
!std::is_base_of_v<typename internal_node_t::base_t,
child_node_t>) {
assert(i->get_val().pladdr.is_paddr());
assert(i->get_val().pladdr.get_paddr() == P_ADDR_ZERO);
} else {
ceph_abort();
}
}
} else {
ceph_abort("impossible");

View File

@ -171,6 +171,8 @@ struct LBALeafNode
for (auto i : *this) {
auto child = (LogicalCachedExtent*)this->children[i.get_offset()];
// Children may not be marked as stable yet,
// the specific order is undefined in the transaction prepare record phase.
if (is_valid_child_ptr(child) && child->get_laddr() != i.get_key()) {
SUBERROR(seastore_fixedkv_tree,
"stable child not valid: child {}, key {}",