]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_lc: add support for optional filter argument and make ID optional 16818/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 3 Aug 2017 13:14:05 +0000 (15:14 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 17 Aug 2017 11:59:47 +0000 (13:59 +0200)
commit93a858392a2a3bc8c16369dd8c3f6845e99af404
tree382701216e6a6ee2c0a6b5eb966cd8a6222aa8d2
parent51ccc5feabea18e6804ec954968e3444be7cb16e
rgw_lc: add support for optional filter argument and make ID optional

Support Filter tag in Lifecycle XML similar to AWS S3, while S3 docs
mention that this tag is mandatory, older clients still default to
Prefix, and S3 itself seems to relaxed in enforcing the rule, this
implementation also follows a similar pattern. Filter optionally
supports filtering via (multiple) Object Tags, this is still a TODO. The
current implementation of object tags is still as an object xattr, and
since the LC processing still iterates over the bucket index which
currently doesn't have any info. on tags, this requires some thought
into for implementing without a larger performance penalty

Fixes: http://tracker.ceph.com/issues/20872
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h
src/rgw/rgw_lc_s3.cc
src/rgw/rgw_lc_s3.h