]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: ability to list bucket contents in unsorted order for efficiency 21026/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 12 Feb 2018 20:03:14 +0000 (15:03 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 11 Apr 2018 17:01:03 +0000 (13:01 -0400)
commit6da5a5888c8605497cddc83b73cee1528d1b4b44
treed37ccec706ce0fd41f6e59bad4a4d4ef37e4e3e2
parent5d2f369b27c9a289b656fd5cc657e2a34157e57a
rgw: ability to list bucket contents in unsorted order for efficiency

Add the ability to list the contents of a bucket without the results
being sorted. This can have performance benefits since all bucket
shards do not need to be queried. This is done by adding a parameter
to the REST query string (i.e., "allow_unordered" [note underscore]
for swift or "allow-unordered" [note hyphen] for s3) to true.

This works with other request parameters such as marker, end_marker,
and prefix. But it does not work when delimeter is used. Also, because
the results are not in order, a subsequent marker may precede an
earlier marker.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
13 files changed:
doc/radosgw/s3/bucketops.rst
doc/radosgw/swift/containerops.rst
src/cls/rgw/cls_rgw_ops.h
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket.cc
src/rgw/rgw_common.h
src/rgw/rgw_lc.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc