Skip to content

Commit

Permalink
crimson/os/seastore/lba_manager: extents pass to LBALeafNode::update()
Browse files Browse the repository at this point in the history
must either has a null parent tracker or point to the current leaf node

Signed-off-by: Xuehan Xu <[email protected]>
  • Loading branch information
xxhdx1985126 committed May 20, 2024
1 parent 5e689ef commit 4b155f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ struct LBALeafNode
iter.get_offset(),
*nextent);
// child-ptr may already be correct, see LBAManager::update_mappings()
this->update_child_ptr(iter, nextent);
if (!nextent->has_parent_tracker()) {
this->update_child_ptr(iter, nextent);
}
assert(nextent->has_parent_tracker()
&& nextent->get_parent_node<LBALeafNode>().get() == this);
}
if (val.pladdr.is_paddr()) {
val.pladdr = maybe_generate_relative(val.pladdr.get_paddr());
Expand Down

0 comments on commit 4b155f3

Please sign in to comment.