rgw_user_sync_all_stats() was using a 'bool is_truncated = false;'
flag which never gets set, so it never looped past 1000 entries
RGWUser::list_buckets() exposes this truncated flag via
RGWBucketList.is_truncated(), so use that instead
Signed-off-by: Casey Bodley <cbodley@redhat.com>
CephContext *cct = store->ctx();
size_t max_entries = cct->_conf->rgw_list_buckets_max_chunk;
- bool is_truncated = false;
string marker;
int ret;
ldout(cct, 0) << "ERROR in check_bucket_shards: " << cpp_strerror(-ret)<< dendl;
}
}
- } while (is_truncated);
+ } while (user_buckets.is_truncated());
ret = store->ctl()->user->complete_flush_stats(user.get_user());
if (ret < 0) {