mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-10 14:50:58 +00:00
Fixed a bug about multipart uploading at no disk free space related to #509
This commit is contained in:
parent
79ea1a1561
commit
b4c90d6957
@ -3432,8 +3432,13 @@ int S3fsCurl::UploadMultipartPostRequest(const char* tpath, int part_num, const
|
||||
// request
|
||||
if(0 == (result = RequestPerform())){
|
||||
// check etag
|
||||
if(NULL != strstr(headdata->str(), partdata.etag.c_str())){
|
||||
partdata.uploaded = true;
|
||||
headers_t::iterator it = responseHeaders.find("ETag");
|
||||
if (it != responseHeaders.end()) {
|
||||
if(S3fsCurl::is_content_md5 && !etag_equals(it->second, partdata.etag)){
|
||||
result = -1;
|
||||
}else{
|
||||
partdata.uploaded = true;
|
||||
}
|
||||
}else{
|
||||
result = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user