diff --git a/src/aof.c b/src/aof.c index 5008644a2..e2aa3b875 100644 --- a/src/aof.c +++ b/src/aof.c @@ -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