From: Chanyoung Park Date: Tue, 22 Jul 2025 23:45:43 +0000 (+0000) Subject: crimson/.../linked_tree_node: fix incorrect end offset calculation X-Git-Tag: testing/wip-vshankar-testing-20250812.045652-debug~21^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7fa4581736039d7d8b2063cd248d3c950ec3eb6;p=ceph-ci.git crimson/.../linked_tree_node: fix incorrect end offset calculation Signed-off-by: Chanyoung Park --- diff --git a/src/crimson/os/seastore/linked_tree_node.h b/src/crimson/os/seastore/linked_tree_node.h index 2dd152b07e7..93a2f0d2bf0 100644 --- a/src/crimson/os/seastore/linked_tree_node.h +++ b/src/crimson/os/seastore/linked_tree_node.h @@ -805,7 +805,7 @@ protected: auto& copy_source = *it; auto end_pos = copy_source->get_size(); if (copy_source->is_in_range(me.get_end())) { - end_pos = copy_source->upper_bound(me.get_end()).get_offset(); + end_pos = copy_source->lower_bound(me.get_end()).get_offset(); } auto local_start_iter = me.iter_idx(local_next_pos); auto foreign_start_iter = copy_source->iter_idx(start_pos);