cos/chunk-size: reduce to 64m from 768m

This commit is contained in:
Minglei Jin 2023-11-17 15:12:40 +08:00
parent 8038fbaa04
commit 56badd0db0
1 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ typedef struct put_object_callback_data {
int noStatus;
} put_object_callback_data;
#define MULTIPART_CHUNK_SIZE (768 << 20) // multipart is 768M
#define MULTIPART_CHUNK_SIZE (64 << 20) // multipart is 768M
typedef struct {
char err_msg[512];
@ -516,7 +516,7 @@ int32_t s3PutObjectFromFile2(const char *file, const char *object) {
// div round up
int seq;
uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 7;
uint64_t chunk_size = MULTIPART_CHUNK_SIZE >> 3;
int totalSeq = (contentLength + chunk_size - 1) / chunk_size;
const int max_part_num = 10000;
if (totalSeq > max_part_num) {