mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 17:28:56 +00:00
Merge pull request #306 from guymguym/patch-1
Fix read concurrency to work in parallel count
This commit is contained in:
commit
ef90e0deed
@ -1448,7 +1448,7 @@ ssize_t FdEntity::Read(char* bytes, off_t start, size_t size, bool force_load)
|
|||||||
// load size(for prefetch)
|
// load size(for prefetch)
|
||||||
size_t load_size = size;
|
size_t load_size = size;
|
||||||
if(static_cast<size_t>(start + size) < pagelist.Size()){
|
if(static_cast<size_t>(start + size) < pagelist.Size()){
|
||||||
size_t prefetch_max_size = max(size, static_cast<size_t>(S3fsCurl::GetMultipartSize()));
|
size_t prefetch_max_size = max(size, static_cast<size_t>(S3fsCurl::GetMultipartSize() * S3fsCurl::GetMaxParallelCount()));
|
||||||
|
|
||||||
if(static_cast<size_t>(start + prefetch_max_size) < pagelist.Size()){
|
if(static_cast<size_t>(start + prefetch_max_size) < pagelist.Size()){
|
||||||
load_size = prefetch_max_size;
|
load_size = prefetch_max_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user