tools/rados/rados.cc: fix rados rm --force-full blocking problem

Fixes: https://tracker.ceph.com/issues/36177
Signed-off-by: Yang Honggang <yanghonggang@umcloud.com>
This commit is contained in:
Yang Honggang 2018-09-25 18:19:40 +08:00
parent a29103e894
commit 3d2b99405e

View File

@ -2904,7 +2904,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
const string & oid = *iter;
if (forcefull) {
ret = detail::remove(io_ctx, oid, CEPH_OSD_FLAG_FULL_FORCE, use_striper);
ret = detail::remove(io_ctx, oid, (CEPH_OSD_FLAG_FULL_FORCE |
CEPH_OSD_FLAG_FULL_TRY), use_striper);
} else {
ret = detail::remove(io_ctx, oid, use_striper);
}