mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
Merge pull request #17185 from oritwas/wip-rgw-20777
rgw-admin: require --yes-i-really-mean-it when using --inconsistent_index Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
d2e598a374
@ -5854,6 +5854,11 @@ next:
|
||||
if (inconsistent_index == false) {
|
||||
RGWBucketAdminOp::remove_bucket(store, bucket_op, bypass_gc, true);
|
||||
} else {
|
||||
if (!yes_i_really_mean_it) {
|
||||
cerr << "using --inconsistent_index can corrupt the bucket index " << std::endl
|
||||
<< "do you really mean it? (requires --yes-i-really-mean-it)" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
RGWBucketAdminOp::remove_bucket(store, bucket_op, bypass_gc, false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user