]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/cached_extent.h: fix get_overlap
authorSamuel Just <sjust@redhat.com>
Tue, 26 May 2020 18:18:47 +0000 (11:18 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 2 Jun 2020 23:56:41 +0000 (16:56 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cached_extent.h

index 93560c549ec34d67523c1fd1fbaca6d3129e1e57..83d54c77ead5b038c1bca50cf7d7536ae97335cf 100644 (file)
@@ -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