mirror of
https://github.com/fluencelabs/redis
synced 2025-06-23 14:01:34 +00:00
use server.unixtime instead of time(NULL) where possible (cluster.c not checked though)
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user