]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: implement listing stale instances from a reshard
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 12 Oct 2018 12:55:48 +0000 (14:55 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 29 Nov 2018 12:42:41 +0000 (13:42 +0100)
commite201d66aab3b684ea509995cd299161a82b5010b
tree13a8d1a041889be981dcc61847fb37b6a42657b5
parentf4a18a100240b870a3621faf6dc942ec47e34b7b
rgw: implement listing stale instances from a reshard

Dynamic resharding used to leave behind stale bucket instances; walk through the
metadata pool and identify these instances by comparing the reshard status. If
the reshard status is done, these instances are ok to be cleared. For reshard
status of none we compare against the bucket entry point to ensure that we don't
match the current entry point.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 0c35a6fab250a817b2752f319b5c9f1da13bb3df)
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h