X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/81f32c7b65c72a45fe1637ab0a661b144c54eb7c..4d57e44839f93b048cf0bb79f1b901b9f554bff4:/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) {