]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/cyanstore: omap_rm_keyrange don't remove last key in range
authorMatan Breizman <mbreizma@redhat.com>
Wed, 10 Aug 2022 09:55:06 +0000 (09:55 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 10 Aug 2022 10:01:32 +0000 (10:01 +0000)
Following our other backends behaviour with ranged key removal.
Caused a failure in test_rados (test_remove_omap_range2)

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/cyanstore/cyan_store.cc

index 4195e68e987c32c16e7f357538bc916dfd624bdb..03244150743a5395d4326805afe97aa511b348cd 100644 (file)
@@ -687,7 +687,7 @@ int CyanStore::_omap_rmkeyrange(
 
   ObjectRef o = c->get_or_create_object(oid);
   for (auto i = o->omap.lower_bound(first);
-       i != o->omap.end() && i->first <= last;
+       i != o->omap.end() && i->first < last;
        o->omap.erase(i++));
   return 0;
 }