From: Samuel Just Date: Tue, 26 May 2020 18:18:47 +0000 (-0700) Subject: crimson/os/seastore/cached_extent.h: fix get_overlap X-Git-Tag: v16.1.0~2167^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e39d73c5a9a5b7f42bd8d1c093dd84dc42ccdef2;p=ceph.git crimson/os/seastore/cached_extent.h: fix get_overlap Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 93560c549ec3..83d54c77ead5 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -389,7 +389,7 @@ public: bottom->get_paddr().add_offset(bottom->get_length()) <= addr) ++bottom; - auto top = extent_index.upper_bound(addr.add_offset(len), paddr_cmp()); + auto top = extent_index.lower_bound(addr.add_offset(len), paddr_cmp()); return std::make_pair( bottom, top