Skip to content

Commit 2b8689e

Browse files
committed
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 <[email protected]>
1 parent b246233 commit 2b8689e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,6 +3835,7 @@ int RGWGetObjAttrs_ObjStore_S3::get_params(optional_yield y)
38353835
<< err << dendl;
38363836
return -ERR_INVALID_PART;
38373837
}
3838+
max_parts = std::min(max_parts, 1000);
38383839
}
38393840

38403841
hdr = env->get_optional("HTTP_X_AMZ_PART_NUMBER_MARKER");

0 commit comments

Comments
 (0)