]> git.apps.os.sepia.ceph.com Git - ceph-ci.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, 8 Mar 2019 18:09:53 +0000 (19:09 +0100)
commit4528db4b642c37f67b3338ce04979b1ba7772e3e
tree67af013de07d04165c832479da3f32ad841fd028
parent64c5d6f880cf6d4d7a93cf4961f14f067d275736
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>
src/rgw/rgw_admin.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h
src/test/cli/radosgw-admin/help.t