]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove 55348/head
authorChen Yuanrun <114801934+chenyuanrun@users.noreply.github.com>
Mon, 29 Jan 2024 10:04:59 +0000 (10:04 +0000)
committerChen Yuanrun <114801934+chenyuanrun@users.noreply.github.com>
Thu, 14 Mar 2024 02:09:43 +0000 (02:09 +0000)
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>
src/librados/IoCtxImpl.cc

index d66b56560f9c3bdba853b5f1bb475d43a40a6fcc..947d8a4930aaeb9463057700849ec14275754c78 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)