]> 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>
Wed, 6 Mar 2019 14:45:49 +0000 (15:45 +0100)
commit1a486ece5a8c4486baa4cf52b4dae00a7bca7f73
tree46f25cd446da80617d66497b81c6891aa165a77e
parentc605b54426d432f903c1c5600c07180edb10f26f
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