fix(cos/multipart): make chunk size not less than 5M
This commit is contained in:
parent
cb3fe4d6de
commit
88d2e00123
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue