mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #1149 from ggtakec/fix_retry
Fixed a bug that type and op are not inherited
This commit is contained in:
commit
81102a5963
@ -1344,6 +1344,8 @@ S3fsCurl* S3fsCurl::UploadMultipartPostRetryCallback(S3fsCurl* s3fscurl)
|
|||||||
newcurl->b_partdata_startpos = s3fscurl->b_partdata_startpos;
|
newcurl->b_partdata_startpos = s3fscurl->b_partdata_startpos;
|
||||||
newcurl->b_partdata_size = s3fscurl->b_partdata_size;
|
newcurl->b_partdata_size = s3fscurl->b_partdata_size;
|
||||||
newcurl->retry_count = s3fscurl->retry_count + 1;
|
newcurl->retry_count = s3fscurl->retry_count + 1;
|
||||||
|
newcurl->op = s3fscurl->op;
|
||||||
|
newcurl->type = s3fscurl->type;
|
||||||
|
|
||||||
// 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)){
|
||||||
@ -1383,6 +1385,8 @@ S3fsCurl* S3fsCurl::CopyMultipartPostRetryCallback(S3fsCurl* s3fscurl)
|
|||||||
newcurl->b_from = s3fscurl->b_from;
|
newcurl->b_from = s3fscurl->b_from;
|
||||||
newcurl->b_meta = s3fscurl->b_meta;
|
newcurl->b_meta = s3fscurl->b_meta;
|
||||||
newcurl->retry_count = s3fscurl->retry_count + 1;
|
newcurl->retry_count = s3fscurl->retry_count + 1;
|
||||||
|
newcurl->op = s3fscurl->op;
|
||||||
|
newcurl->type = s3fscurl->type;
|
||||||
|
|
||||||
// setup new curl object
|
// setup new curl object
|
||||||
if(0 != newcurl->CopyMultipartPostSetup(s3fscurl->b_from.c_str(), s3fscurl->path.c_str(), part_num, upload_id, s3fscurl->b_meta)){
|
if(0 != newcurl->CopyMultipartPostSetup(s3fscurl->b_from.c_str(), s3fscurl->path.c_str(), part_num, upload_id, s3fscurl->b_meta)){
|
||||||
|
Loading…
Reference in New Issue
Block a user