The is_truncated flag was not being handled properly and therefore
limited the output on these radosgw-admin commands to 1000 buckets.
Fixes: https://tracker.ceph.com/issues/45630
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
rgw::sal::RGWBucketList buckets;
rgw::sal::RGWRadosUser user(store, op_state.get_user_id());
string marker;
- bool is_truncated = false;
do {
+ buckets.clear();
ret = user.list_buckets(marker, string(), max_entries, false, buckets);
if (ret < 0)
return ret;
}
flusher.flush();
- } while (is_truncated);
+ } while (buckets.is_truncated());
formatter->close_section();
} else if (!bucket_name.empty()) {
buckets[bucket->ent.bucket.name] = bucket;
}
size_t count() const { return buckets.size(); }
-
-};
+ void clear() { buckets.clear(); truncated = false; }
+}; // class RGWBucketList
class RGWObject {
protected: