fix(defaults): set 'fsync' #26034

Problem:
'nofsync' may lose data if the system has a hard shutdown. #9888

Solution:
Change default to 'fsync'. This may be revisited in the future when
'nofsync' can be made safer.
This commit is contained in:
Ploum
2023-11-14 11:56:50 +01:00
committed by GitHub
parent 582d7f4790
commit 5b45efbee6
4 changed files with 3 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ describe('fileio', function()
it('fsync() codepaths #8304', function()
clear({ args={ '-i', 'Xtest_startup_shada',
'--cmd', 'set nofsync',
'--cmd', 'set directory=Xtest_startup_swapdir' } })
-- These cases ALWAYS force fsync (regardless of 'fsync' option):