mirror of
https://github.com/fluencelabs/redis
synced 2025-04-29 20:42:13 +00:00
Use fsync instead of aof_fsync in final AOF sync.
This happens in the child process so we don't care about latency: better to sync metadata as well.
This commit is contained in:
parent
74423be7a5
commit
ca2db2bcb9
@ -991,7 +991,7 @@ int rewriteAppendOnlyFile(char *filename) {
|
||||
|
||||
/* Make sure data will not remain on the OS's output buffers */
|
||||
if (fflush(fp) == EOF) goto werr;
|
||||
if (aof_fsync(fileno(fp)) == -1) goto werr;
|
||||
if (fsync(fileno(fp)) == -1) goto werr;
|
||||
if (fclose(fp) == EOF) goto werr;
|
||||
|
||||
/* Use RENAME to make sure the DB file is changed atomically only
|
||||
|
Loading…
x
Reference in New Issue
Block a user