Merge pull request #695 from orozery/fix_parallel_download_condition

fix condition for parallel download
This commit is contained in:
Takeshi Nakatani 2017-12-17 15:41:43 +09:00 committed by GitHub
commit a841057679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1155,7 +1155,7 @@ int FdEntity::Load(off_t start, size_t size)
size_t over_size = (*iter)->bytes - need_load_size; size_t over_size = (*iter)->bytes - need_load_size;
// download // download
if(static_cast<size_t>(2 * S3fsCurl::GetMultipartSize()) < need_load_size && !nomultipart){ // default 20MB if(static_cast<size_t>(2 * S3fsCurl::GetMultipartSize()) <= need_load_size && !nomultipart){ // default 20MB
// parallel request // parallel request
// Additional time is needed for large files // Additional time is needed for large files
time_t backup = 0; time_t backup = 0;