]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: allow radosgw-admin to list bucket w --allow-unordered 28230/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 8 May 2019 18:47:04 +0000 (14:47 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 23 May 2019 17:27:33 +0000 (13:27 -0400)
commita7dd9febc78e31c1921e7be992b406a120bf7fdb
tree21a1e955e649bdb571d538421d6d3537429af9a2
parentdea32deea573d7bcfc44c3052fc6e57aaac3ea4e
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