Fsyncing the file has a small performance penalty and seems unnecessary. The file will be fsynced anyway, when the changes are commited to the database. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3749