File libs3-largerpart.diff of Package libs3
Index: libs3/src/s3.c
===================================================================
--- libs3.orig/src/s3.c
+++ libs3/src/s3.c
@@ -2062,9 +2062,9 @@ static int putObjectDataCallback(int buf
return ret;
}
-#define MULTIPART_CHUNK_SIZE (15 << 20) // multipart is 15M
+#define MULTIPART_CHUNK_SIZE (128 << 20) // multipart is 128M
typedef struct MultipartPartData {
put_object_callback_data put_object_data;
int seq;
@@ -2497,9 +2497,9 @@ upload:
partData.seq = seq;
partData.put_object_data = data;
partContentLength = ((contentLength > MULTIPART_CHUNK_SIZE) ?
MULTIPART_CHUNK_SIZE : contentLength);
- printf("%s Part Seq %d, length=%d\n", srcSize ? "Copying" : "Sending", seq, partContentLength);
+ printf("%s Part Seq %d/%d, length=%d\n", srcSize ? "Copying" : "Sending", seq, totalSeq, partContentLength);
partData.put_object_data.contentLength = partContentLength;
partData.put_object_data.originalContentLength = partContentLength;
partData.put_object_data.totalContentLength = todoContentLength;
partData.put_object_data.totalOriginalContentLength = totalContentLength;