mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Merge pull request #22036 from linuxbox2/wip-warn-orphans
rgw: require --yes-i-really-mean-it to run radosgw-admin orphans find
This commit is contained in:
commit
aefbe28ae3
@ -6362,6 +6362,13 @@ next:
|
||||
}
|
||||
|
||||
if (opt_cmd == OPT_ORPHANS_FIND) {
|
||||
if (!yes_i_really_mean_it) {
|
||||
cerr << "accidental removal of active objects can not be reversed; "
|
||||
<< "do you really mean it? (requires --yes-i-really-mean-it)"
|
||||
<< std::endl;
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
RGWOrphanSearch search(store, max_concurrent_ios, orphan_stale_secs);
|
||||
|
||||
if (job_id.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user