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:
Matt Benjamin 2018-05-21 13:55:58 -04:00 committed by GitHub
commit aefbe28ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {