]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: allow radosgw-admin to list bucket w --allow-unordered
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 8 May 2019 18:47:04 +0000 (14:47 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 9 May 2019 13:29:05 +0000 (09:29 -0400)
commit12452c4a91ee56c10d3dcf970dd2b0dd5aeb2401
tree16e40bb871cce1e2bc8c7cbbe22968c58cd9a5a3
parentaf96df1d6716014e93af5fe15d19b936e4b112ab
rgw: allow radosgw-admin to list bucket w --allow-unordered

Presently the `radosgw-admin bucket list --bucket=<bucket>` lists the
objects in lexical order. This can be an expensive operation since
objects are not stored in bucket index shards in order and a selection
sort process is done across all bucket index shards.

By allowing the user to add the "--allow-unordered" command-line flag,
a more efficient bucket listing is enabled. This is particularly
important for buckets with a large number of objects.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
doc/man/8/radosgw-admin.rst
src/rgw/rgw_admin.cc
src/test/cli/radosgw-admin/help.t