sortedcache: check file size after opening the file
Checking the size before we open the file descriptor can lead to the file being replaced from under us when renames aren't quite atomic, so we can end up reading too little of the file, leading to us thinking the file is corrupted.
Showing
Please
register
or
sign in
to comment