Skip to content

Commit

Permalink
Revert "Update curl.cpp: reduce memory cache use (#2157)"
Browse files Browse the repository at this point in the history
This reverts commit 5b487f6.
  • Loading branch information
ggtakec committed May 27, 2023
1 parent 5b487f6 commit d7c212f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,12 +703,7 @@ size_t S3fsCurl::DownloadWriteCallback(void* ptr, size_t size, size_t nmemb, voi
}
pCurl->partdata.startpos += totalwrite;
pCurl->partdata.size -= totalwrite;

// flush the file and clean the page cache
if (pCurl->partdata.size == 0){
fdatasync(pCurl->partdata.fd);
}


return totalwrite;
}

Expand Down

0 comments on commit d7c212f

Please sign in to comment.