]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: failed resharding clears resharding status from shard heads
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 12 Oct 2018 22:07:24 +0000 (18:07 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 1 Nov 2018 20:25:36 +0000 (16:25 -0400)
commit9c9534ee328a0a1359eb7ddbc18ed1ed699c274a
tree5cf741f03925baa120309ddc8895c2c94dd88e46
parent2334227239e60c4deba80b50b6638e09b6b477a8
rgw: failed resharding clears resharding status from shard heads

Previously, when resharding failed, we restored the shard status on
the bucket info object. However the status on each of the shards was
left indicating a reshard was underway. This prevented some write
operations from taking place, as they would wait for resharding to
complete. This adds the missing functionality. It also makes the
functionality available to other classes via static functions in
RGWBucketReshard.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 4577801271454b147cb3b1f3169d268d1c14948b)
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_types.h
src/rgw/rgw_reshard.cc
src/rgw/rgw_reshard.h