]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: allow ordered bucket listing to work when many filtered out entries
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 19 Jul 2021 18:24:11 +0000 (14:24 -0400)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 18 Feb 2022 21:30:13 +0000 (22:30 +0100)
commit6b6c069046c7e6b5d0a5a6b8558909a4ada50f27
tree0230eac56cf2ccb829cc0bf47ee874635c96e05e
parent5b4416671a3a9f1fbef0d20d081d05e41851d926
rgw: allow ordered bucket listing to work when many filtered out entries

A previous PR moved the much of the filtering that's part of bucket
listing to the CLS layer. One unanticipated result was that it is now
possible for a call to return 0 entries. In such a case we want to
retry the call with the marker moved forward (i.e., advanced),
repeatedly if necessary, in order to either retrieve some entries or
to hit the end of the entries. This PR adds that functionality.

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

Conflicts:
src/cls/rgw/cls_rgw_ops.h
s/ceph::buffer::list/bufferlist/g
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_ops.h
src/cls/rgw/cls_rgw_types.h
src/rgw/rgw_rados.cc