Skip to content
Commit d20a188b authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Only fsync if the existing file is > 0 bytes

This means we don't sync in the case where we created an (empty)
temp file and now replace it with the data.

This fixes (among other things) the performance of trashing files.
parent 79a70dc8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment