]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw admin: implement a lc fix option
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 4 Mar 2019 18:10:45 +0000 (19:10 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 12 Apr 2019 16:08:27 +0000 (18:08 +0200)
commit9ee376b866cf35915bd315d3926d9ea77934f3d0
tree96cfc7c6f31a5aeeefccdbbee7d5d987f1c32bd1
parent384a80c9a9eb9be63a2e2572f6cb15305159120d
rgw admin: implement a lc fix option

An radosgw-admin lc fix --bucket <> option is added which checks if the bucket
entry exists in the corresponding lc shard and creates it if not. In case of
resharded buckets not running a fixed rgw that writes/compares the marker this
would write a new entry with the marker as the old entry would've already been
deleted by a LC process. We currently don't cleanup the stale entry as it is
assumed this would be picked up by the LC processor already or would be picked
up in the next cycle.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4528db4b642c37f67b3338ce04979b1ba7772e3e)
src/rgw/rgw_admin.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h
src/test/cli/radosgw-admin/help.t