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 <jbaergen@digitalocean.com>
(cherry picked from commit
4bf05121407f2108152379bb3f92d1ecbd730ea3)
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. */