]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove 59284/head
authorChen Yuanrun <114801934+chenyuanrun@users.noreply.github.com>
Mon, 29 Jan 2024 10:04:59 +0000 (10:04 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 17 Aug 2024 11:10:27 +0000 (18:10 +0700)
librados::OPERATION_FULL_FORCE should be translated to
CEPH_OSD_FLAG_FULL_FORCE before calling IoCtxImpl::remove().

Fixes: https://tracker.ceph.com/issues/64558
Signed-off-by: Chen Yuanrun <chen-yuanrun@foxmail.com>
(cherry picked from commit a4e2a598aeeec6eeeae00d5c81443ab8e091a337)

src/librados/IoCtxImpl.cc

index b6be9050b1a9b792c2276a0ca80fdcfbf1a4d3a1..92990cc40353fdfd03e8c8a7fd073e9ce8362ec8 100644 (file)
@@ -1235,7 +1235,7 @@ int librados::IoCtxImpl::remove(const object_t& oid)
   ::ObjectOperation op;
   prepare_assert_ops(&op);
   op.remove();
-  return operate(oid, &op, nullptr, librados::OPERATION_FULL_FORCE);
+  return operate(oid, &op, nullptr, CEPH_OSD_FLAG_FULL_FORCE);
 }
 
 int librados::IoCtxImpl::remove(const object_t& oid, int flags)