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-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F64625%2Fhead;p=ceph.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);