]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: move RGWReshardBucket lock to its own separate class
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 16 Oct 2018 20:40:03 +0000 (16:40 -0400)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 29 Nov 2018 12:03:59 +0000 (13:03 +0100)
commit604036085d7ec500b0397088bb5cb3ba9dfea5e6
tree011dab08a967014bf419310706c45bf8dec8e31a
parente0336761bcdd8a5ec1693bad6190cbd6ac5d0cd7
rgw: move RGWReshardBucket lock to its own separate class

There are other processes beyond resharding that would need to take a
bucket reshard lock (e.g., correcting bucet resharding flags in event
of crash, tools to remove bucket shard information from earlier
versions of ceph). Pulling this logic outside of RGWReshardBucket
allows this code to be re-used.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 18ab99cd542cc253d62719a18a9d13e7a312eb15)
src/rgw/rgw_rados.h
src/rgw/rgw_reshard.cc
src/rgw/rgw_reshard.h