]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: allow radosgw-admin to list bucket w --allow-unordered 31220/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 8 May 2019 18:47:04 +0000 (14:47 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Oct 2019 11:34:31 +0000 (12:34 +0100)
commitc5e20bc94d5d77f2f90b39ecfd1682c86af1dd30
treedef8dbdff3e6736898b5bc774181d16caeb3c0e3
parenta8a0c086ada153e616100b322f4b1e54258d7e86
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>
(cherry picked from commit 12452c4a91ee56c10d3dcf970dd2b0dd5aeb2401)
doc/man/8/radosgw-admin.rst
src/rgw/rgw_admin.cc
src/test/cli/radosgw-admin/help.t