From a14d3ff25890a6e4e218bf664cf45198cc6a85c7 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Wed, 10 Aug 2022 09:55:06 +0000 Subject: [PATCH] crimson/os/cyanstore: omap_rm_keyrange don't remove last key in range Following our other backends behaviour with ranged key removal. Caused a failure in test_rados (test_remove_omap_range2) Signed-off-by: Matan Breizman --- src/crimson/os/cyanstore/cyan_store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/os/cyanstore/cyan_store.cc b/src/crimson/os/cyanstore/cyan_store.cc index 4195e68e987c3..03244150743a5 100644 --- a/src/crimson/os/cyanstore/cyan_store.cc +++ b/src/crimson/os/cyanstore/cyan_store.cc @@ -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; } -- 2.39.5