]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: "reshard cancel" errors with "invalid argument" 49090/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:02:54 +0000 (04:02 -0500)
commit4e9453931c4f9eea2cc052b09277ffa8723cb1f0
tree5dcaed8b8f4aac2754dd45adce7ed34fdbaa4fc1
parent1eca59d3fca02719370f4fa8337a64dad73c3051
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