]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: ability to list bucket contents in unsorted order for efficiency 21806/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, 2 May 2018 21:04:46 +0000 (17:04 -0400)
commit5fa11dd26a35b81a0b75d0778cdf4547dddb8741
tree240eb58792986d62b4bcf0287118d427464618b2
parentd79ddf87bd4ebbb3ee7b88675842219820173545
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>
(cherry picked from commit 6da5a5888c8605497cddc83b73cee1528d1b4b44)
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