mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Merge pull request #695 from orozery/fix_parallel_download_condition
fix condition for parallel download
This commit is contained in:
commit
a841057679
@ -1155,7 +1155,7 @@ int FdEntity::Load(off_t start, size_t size)
|
||||
size_t over_size = (*iter)->bytes - need_load_size;
|
||||
|
||||
// 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
|
||||
// Additional time is needed for large files
|
||||
time_t backup = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user