]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: recover from incomplete reshard attempt 24406/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 17 Oct 2018 17:43:24 +0000 (13:43 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 26 Oct 2018 16:17:54 +0000 (12:17 -0400)
commit4891ae59314041802da0f6dc249ccbeb761616dc
treeadbe15e1c1813505170bf026500745d88490a6c0
parent18ab99cd542cc253d62719a18a9d13e7a312eb15
rgw: recover from incomplete reshard attempt

In case a reshard attempt is left in an incomplete state, i.e., flags
still show resharding even though the bucket reshard lock isn't being
held, try to recover by taking the bucket reshard lock and clearing
flags associated with resharding.

This change requires access to an RGWBucketInfo object. So call stack
into this function should provide that to prevent unnecessary
work. Changes were made to provide this object.

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