The function called `rgw_read_user_buckets` has one option `bool *is_truncated`
which should be updated, and we could use `is_truncated` to avoid unnessesary
iteration.
Fixes: http://tracker.ceph.com/issues/19365
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
} while (truncated && total < max);
+ if (is_truncated != nullptr) {
+ *is_truncated = truncated;
+ }
+
if (need_stats) {
map<string, RGWBucketEnt>& m = buckets.get_buckets();
ret = store->update_containers_stats(m);