mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-06 06:20:42 +00:00
Fixed a bug.
* Fixed a bug Fixes a bug that the retrying multipart post request is not complete, then it is fixed. This is reported by Issue 371#32. git-svn-id: http://s3fs.googlecode.com/svn/trunk@492 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
33431dec46
commit
1bae39e21f
@ -867,8 +867,10 @@ S3fsCurl* S3fsCurl::UploadMultipartPostRetryCallback(S3fsCurl* s3fscurl)
|
|||||||
newcurl->partdata.etaglist = s3fscurl->partdata.etaglist;
|
newcurl->partdata.etaglist = s3fscurl->partdata.etaglist;
|
||||||
newcurl->partdata.etagpos = s3fscurl->partdata.etagpos;
|
newcurl->partdata.etagpos = s3fscurl->partdata.etagpos;
|
||||||
newcurl->partdata.fd = s3fscurl->partdata.fd;
|
newcurl->partdata.fd = s3fscurl->partdata.fd;
|
||||||
newcurl->partdata.startpos = s3fscurl->partdata.startpos;
|
newcurl->partdata.startpos = s3fscurl->b_partdata_startpos;
|
||||||
newcurl->partdata.size = s3fscurl->partdata.size;
|
newcurl->partdata.size = s3fscurl->b_partdata_size;
|
||||||
|
newcurl->b_partdata_startpos = s3fscurl->b_partdata_startpos;
|
||||||
|
newcurl->b_partdata_size = s3fscurl->b_partdata_size;
|
||||||
|
|
||||||
// setup new curl object
|
// setup new curl object
|
||||||
if(0 != newcurl->UploadMultipartPostSetup(s3fscurl->path.c_str(), part_num, upload_id)){
|
if(0 != newcurl->UploadMultipartPostSetup(s3fscurl->path.c_str(), part_num, upload_id)){
|
||||||
@ -931,6 +933,8 @@ int S3fsCurl::ParallelMultipartUploadRequest(const char* tpath, headers_t& meta,
|
|||||||
s3fscurl_para->partdata.fd = fd2;
|
s3fscurl_para->partdata.fd = fd2;
|
||||||
s3fscurl_para->partdata.startpos = st.st_size - remaining_bytes;
|
s3fscurl_para->partdata.startpos = st.st_size - remaining_bytes;
|
||||||
s3fscurl_para->partdata.size = chunk;
|
s3fscurl_para->partdata.size = chunk;
|
||||||
|
s3fscurl_para->b_partdata_startpos = s3fscurl_para->partdata.startpos;
|
||||||
|
s3fscurl_para->b_partdata_size = s3fscurl_para->partdata.size;
|
||||||
s3fscurl_para->partdata.add_etag_list(&list);
|
s3fscurl_para->partdata.add_etag_list(&list);
|
||||||
|
|
||||||
// initiate upload part for parallel
|
// initiate upload part for parallel
|
||||||
|
Loading…
Reference in New Issue
Block a user