]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove 59282/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:09:29 +0000 (18:09 +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 e1d38fd014a4ba30349987a38dbd53a2f21f633a..a8850db2851b02919597a74f1151c10dfac7cf3a 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)