]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: allow reshard log entries for non-existent buckets to be cancelled 31271/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 29 Oct 2019 23:25:51 +0000 (19:25 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 1 Nov 2019 19:16:40 +0000 (15:16 -0400)
commit9f893a7398716127711a0baaa937070a495a7a56
tree337e72b3545a6505f70a7870a0523707ea4d3ac5
parent35b0b52153206fd6178afe584a2cd9c0ef2bcc05
rgw: allow reshard log entries for non-existent buckets to be cancelled

The radosgw-admin tool allows admins to add buckets to the reshard log
and to cancel buckets from the reshard log. Both operations check for
the existence of the bucket before proceeding and fail for nonexistent
buckets.

It's possible, however, for an admin to add a bucket to the reshard
log and then, before the bucket is resharded, for a user to delete the
bucket. This leaves the entry in the reshard log.

Prior to this commit an attempt to use radosgw-admin to cancel the
reshard log entry would fail. With this commit it will still fail
*but* notify the user they can use the --yes-i-really-mean-it
command-line option to do it nonetheless. And if the user includes
that option, it will succeed.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_admin.cc