X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/c1d01b3c5796ee7e3f466e0db9f55d37e843cbb9..0d5f4ba7cde2efa859a5ea04d59079b5909d537a:/src/aof.c 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) {