From 435954ba6073c51e71117ee1a4ce16ffb71eb301 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 22 Feb 2018 19:07:34 +0800 Subject: [PATCH] librados: make OPERATION_FULL_FORCE the default for rados_remove() Fixes: http://tracker.ceph.com/issues/22413 Signed-off-by: Kefu Chai --- 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 e448df27258..bb8a0795771 100644 --- a/src/librados/IoCtxImpl.cc +++ b/src/librados/IoCtxImpl.cc @@ -1282,7 +1282,7 @@ int librados::IoCtxImpl::remove(const object_t& oid) ::ObjectOperation op; prepare_assert_ops(&op); op.remove(); - return operate(oid, &op, NULL); + return operate(oid, &op, nullptr, librados::OPERATION_FULL_FORCE); } int librados::IoCtxImpl::remove(const object_t& oid, int flags)