mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
crimson/os/seastore/btree: misc consolidations
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
This commit is contained in:
parent
fecf501c41
commit
72d721ad72
@ -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");
|
||||
|
@ -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 {}",
|
||||
|
Loading…
Reference in New Issue
Block a user