From e5431209b4f715f1f7c7029bcd88d7b6d5d1ef70 Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Thu, 4 Jun 2020 12:41:06 -0400 Subject: [PATCH] rgw: bucket list/stats truncates for user w/ >1000 buckets The is_truncated flag was not being handled properly and therefore limited the output on these radosgw-admin commands to 1000 buckets. Signed-off-by: J. Eric Ivancich (cherry picked from commit 11ab7c8234daa3d4c077710ea4c8b0437e57daf8) Conflicts: src/rgw/rgw_bucket.cc -- small organizational adjustments src/rgw/rgw_sal.h -- does not exist in nautilus --- src/rgw/rgw_bucket.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index a063b4145ad02..cc1d911375782 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -1662,6 +1662,7 @@ int RGWBucketAdminOp::info(RGWRados *store, RGWBucketAdminOpState& op_state, bool is_truncated = false; do { + buckets.clear(); ret = rgw_read_user_buckets(store, op_state.get_user_id(), buckets, marker, string(), max_entries, false, &is_truncated); -- 2.39.5