]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: "reshard cancel" errors with "invalid argument"
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 30 Nov 2021 19:26:15 +0000 (14:26 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 1 Dec 2021 17:25:44 +0000 (12:25 -0500)
commitcacddbb83d23fe6ba2d42e1497d0ff49fb880154
tree45ba4721f7c98de7bb8d6800ff0f39af68d05da8
parent4898706a716ba40dd427ff3fe5bb0d077c0a87d5
rgw: "reshard cancel" errors with "invalid argument"

When `radosgw-admin reshard cancel ...` was used on a bucket that is
not currently undergoing resharding, it would error out.

Now it will then try to unschedule any reshards for the bucket in the
so-called "reshard log". It will error out if there is neither an
underway resharding nor a scheduled resharding.

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