]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: admin: introduce objects expire-stale list and rm
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 29 Apr 2019 15:30:46 +0000 (17:30 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 6 May 2019 09:52:13 +0000 (11:52 +0200)
commitd4c462a94c8308d5f45de32c2d0d25c7374c9613
tree160b7a7633bacef27845c93e3a6f171a5aaf8f61
parent5e56ea6f0778973cdbb90eaf643fba1240af3f8b
rgw: admin: introduce objects expire-stale list and rm

These commands help cleanup stale expired objects after a reshard has happened
Contains the following changesets:

* rgw_bucket: add a AdminOp function to cleanup stale expired objects
There is also a dry run option, which will allow listing to just view the
objects before we actually delete them
* rgw_bucket: introduce rgw_object_get_attr helper function
Since this could be re-used across other functions that try to get a single
xattr, both get acl and the new object expire stale commands now use this
function to read the value of a single xattr

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h
src/test/cli/radosgw-admin/help.t