From: Matt Benjamin Date: Fri, 18 Oct 2024 19:31:32 +0000 (-0400) Subject: rgw:attrs cap max_parts at 1000 X-Git-Tag: v20.0.0~421^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b8689eec9d4d53e62d2b992ec6e4c2f5c244cd6;p=ceph.git rgw:attrs cap max_parts at 1000 Suggested by Casey. This is a relatively small value, but let's be conservative. Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 698917f95f85..6cd641e5c3c6 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -3835,6 +3835,7 @@ int RGWGetObjAttrs_ObjStore_S3::get_params(optional_yield y) << err << dendl; return -ERR_INVALID_PART; } + max_parts = std::min(max_parts, 1000); } hdr = env->get_optional("HTTP_X_AMZ_PART_NUMBER_MARKER");