From b49ca75f68a3c8030d891f05428dfe2b68e04c02 Mon Sep 17 00:00:00 2001 From: Chen Yuanrun <114801934+chenyuanrun@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:04:59 +0000 Subject: [PATCH] librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove 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 (cherry picked from commit a4e2a598aeeec6eeeae00d5c81443ab8e091a337) --- src/librados/IoCtxImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc index e1d38fd014a4b..a8850db2851b0 100644 --- a/src/librados/IoCtxImpl.cc +++ b/src/librados/IoCtxImpl.cc @@ -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) -- 2.39.5