]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: "reshard cancel" errors with "invalid argument" 49091/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 30 Nov 2021 19:26:15 +0000 (14:26 -0500)
committerCory Snyder <csnyder@iland.com>
Mon, 28 Nov 2022 09:03:14 +0000 (04:03 -0500)
commit2608a7f837696cdd7c6d55c5bb44d28a87293244
tree5e865ed2fb188fb7ca4f8cc8a229b720ce02bc03
parent5bb08ab9c102abf66e48d71166129deed2ec2cd1
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>
(cherry picked from commit cacddbb83d23fe6ba2d42e1497d0ff49fb880154)
src/rgw/rgw_admin.cc