]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/s3: support paginated ListBuckets
authorCasey Bodley <cbodley@redhat.com>
Mon, 28 Jul 2025 20:41:56 +0000 (16:41 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Jul 2025 16:49:47 +0000 (12:49 -0400)
commite0d797da7907cae4db6d0c9eec85b6809898b37d
tree9ae79796d6f20617ab3b76f40445e4f046860123
parentfbdf927675cd059f135e1e5e264f616296433a02
rgw/s3: support paginated ListBuckets

at some point, aws added pagination support to ListBuckets[1] in the
form of query params max-buckets and continuation-token

RGWListBuckets already supported pagination for the swift api, so we
only need to hook up the s3 request/response formats to use it

Fixes: https://tracker.ceph.com/issues/72315
[1] https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h