X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/38d6976c0340863daae3e67d549413ee0694c7aa..56ff70f8e0eec1f883166c50c877a1e78a7d3123:/src/aof.c?ds=inline diff --git a/src/aof.c b/src/aof.c index 4d3ce096..3f7cd10f 100644 --- a/src/aof.c +++ b/src/aof.c @@ -46,7 +46,7 @@ void stopAppendOnly(void) { /* Called when the user switches from "appendonly no" to "appendonly yes" * at runtime using the CONFIG command. */ int startAppendOnly(void) { - server.aof_last_fsync = time(NULL); + server.aof_last_fsync = server.unixtime; server.aof_fd = open(server.aof_filename,O_WRONLY|O_APPEND|O_CREAT,0644); redisAssert(server.aof_state == REDIS_AOF_OFF); if (server.aof_fd == -1) {