use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)

This commit is contained in:
Premysl Hruby
2012-03-27 17:39:58 +02:00
committed by antirez
parent 38d6976c03
commit 56ff70f8e0
5 changed files with 20 additions and 23 deletions

View File

@ -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) {