mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
Merge pull request #31355 from zhangsw/fix-rgw-reshard-max-entries
rgw: reshard list may return more than specified max_entries. Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
47f9991cd1
@ -6348,7 +6348,7 @@ next:
|
||||
string marker;
|
||||
do {
|
||||
entries.clear();
|
||||
ret = reshard.list(i, marker, max_entries, entries, &is_truncated);
|
||||
ret = reshard.list(i, marker, max_entries - count, entries, &is_truncated);
|
||||
if (ret < 0) {
|
||||
cerr << "Error listing resharding buckets: " << cpp_strerror(-ret) << std::endl;
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user