From: Joshua Baergen Date: Wed, 19 Oct 2022 21:13:12 +0000 (-0600) Subject: rgw: Fix truncated ListBuckets response. X-Git-Tag: v17.2.6~117^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71d0525e453ccfc803b862aaaf874f7766ef2a55;p=ceph.git rgw: Fix truncated ListBuckets response. Commit 54b470facffe8251dc37b2020e771d4d061cb2ae caused s3:ListBuckets to return a maximum of 1000 buckets by default as it removed the truncation detection from this code. We can fix this by simply setting RGWListBuckets::is_truncated after querying for each batch of buckets. Signed-off-by: Joshua Baergen (cherry picked from commit 4bf05121407f2108152379bb3f92d1ecbd730ea3) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 0fa2ffc85aef..6068082c2357 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2397,6 +2397,8 @@ void RGWListBuckets::execute(optional_yield y) break; } + is_truncated = buckets.is_truncated(); + /* We need to have stats for all our policies - even if a given policy * isn't actually used in a given account. In such situation its usage * stats would be simply full of zeros. */