mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
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:
parent
a29103e894
commit
3d2b99405e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user