From 88d2e001231007fe82cadac511c9123d3f0ac6ad Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 14 Nov 2023 17:39:47 +0800 Subject: [PATCH] fix(cos/multipart): make chunk size not less than 5M --- source/common/src/cos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/cos.c b/source/common/src/cos.c index ea41afd8fb..6643cc3925 100644 --- a/source/common/src/cos.c +++ b/source/common/src/cos.c @@ -520,7 +520,7 @@ int32_t s3PutObjectFromFile2(const char *file, const char *object) { // div round up int seq; - uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 8; + uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 7; int totalSeq = ((contentLength + chunk_size - 1) / chunk_size); MultipartPartData partData;