Skip to content

Commit e7fa458

Browse files
committed
crimson/.../linked_tree_node: fix incorrect end offset calculation
Signed-off-by: Chanyoung Park <[email protected]>
1 parent b352f56 commit e7fa458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/os/seastore/linked_tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ class ParentNode {
805805
auto& copy_source = *it;
806806
auto end_pos = copy_source->get_size();
807807
if (copy_source->is_in_range(me.get_end())) {
808-
end_pos = copy_source->upper_bound(me.get_end()).get_offset();
808+
end_pos = copy_source->lower_bound(me.get_end()).get_offset();
809809
}
810810
auto local_start_iter = me.iter_idx(local_next_pos);
811811
auto foreign_start_iter = copy_source->iter_idx(start_pos);

0 commit comments

Comments
 (0)