]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: make OPERATION_FULL_FORCE the default for rados_remove() 20534/head
authorKefu Chai <kchai@redhat.com>
Thu, 22 Feb 2018 11:07:34 +0000 (19:07 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 22 Feb 2018 11:08:09 +0000 (19:08 +0800)
Fixes: http://tracker.ceph.com/issues/22413
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librados/IoCtxImpl.cc

index e448df272581f2450c234d4dbc817de0cdfca284..bb8a0795771b754671bd5589ca861b11ad1cd554 100644 (file)
@@ -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)