From 2b8689eec9d4d53e62d2b992ec6e4c2f5c244cd6 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Fri, 18 Oct 2024 15:31:32 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_rest_s3.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 698917f95f856..6cd641e5c3c6e 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"); -- 2.39.5