From: zhangshaowen Date: Mon, 4 Nov 2019 11:45:03 +0000 (+0800) Subject: rgw: reshard list may return more than specified max_entries. X-Git-Tag: v15.1.0~111^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=68ddf78d5bbe4681e92207d86f9ee7a110f67776;p=ceph.git rgw: reshard list may return more than specified max_entries. Signed-off-by: zhangshaowen --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 2c1ed88f5570..2d0c0630e978 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -6355,7 +6355,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;