mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-24 14:28:24 +00:00
Merge pull request #560 from ggtakec/master
Fixed about multipart uploading at no free space related to #509
This commit is contained in:
commit
94ddcb8d4f
@ -3432,8 +3432,13 @@ int S3fsCurl::UploadMultipartPostRequest(const char* tpath, int part_num, const
|
|||||||
// request
|
// request
|
||||||
if(0 == (result = RequestPerform())){
|
if(0 == (result = RequestPerform())){
|
||||||
// check etag
|
// check etag
|
||||||
if(NULL != strstr(headdata->str(), partdata.etag.c_str())){
|
headers_t::iterator it = responseHeaders.find("ETag");
|
||||||
partdata.uploaded = true;
|
if (it != responseHeaders.end()) {
|
||||||
|
if(S3fsCurl::is_content_md5 && !etag_equals(it->second, partdata.etag)){
|
||||||
|
result = -1;
|
||||||
|
}else{
|
||||||
|
partdata.uploaded = true;
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user