]> 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>
Tue, 1 Mar 2022 10:31:01 +0000 (11:31 +0100)
commit5c7487dd62d3d322fea1cc2be8a19285c7d80239
treea3adae64e3600a38cc8a11855f4cbcd57659a14f
parentc7434faa80ed283e8b21a79d4cdedd1074ef7417
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)
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