]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw:attrs cap max_parts at 1000
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 18 Oct 2024 19:31:32 +0000 (15:31 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 8 Jan 2025 00:17:48 +0000 (19:17 -0500)
Suggested by Casey.  This is a relatively small value, but let's
be conservative.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_rest_s3.cc

index 698917f95f856ddbeb4a1e59f3fe2dfb22ca87eb..6cd641e5c3c6e7f6c0a21d19d4d767c8afd94dc6 100644 (file)
@@ -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");