]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: cls_bucket_list_(un)ordered should clear results collection 36163/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 3 Mar 2020 16:18:11 +0000 (11:18 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Mon, 20 Jul 2020 14:02:38 +0000 (10:02 -0400)
commitd6fa0cdee3fd5145187bde6e69e2bcb32a233261
treed0335408df9b103e53bd4f88ef3b8523c99b23ed
parent737d7af0857b3a4463c10bd503de8d5ee3af584f
rgw: cls_bucket_list_(un)ordered should clear results collection

Each call to cls_bucket_list_(un)ordered should have an empty
collection to populate with results. Rather than rely on the caller to
insure this, it's more reliable to have these functions do the clear.

Additionally in some cases, a reserve call was added to the collection
to pre-allocate the space needed for the expected number of
results. This will potentially result in fewer re-allocations plus
copies.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit c52039a9e8a49f3a29e2d2ee80e50d7b1b441842)

Conflicts:
    src/rgw/rgw_admin.cc
    src/rgw/rgw_rados.cc
src/rgw/rgw_rados.cc