postpone the AOF fsync if policy is everysec and there is a background fsync already going.

This commit is contained in:
antirez
2011-09-16 12:35:12 +02:00
parent 056c2acaea
commit 4c2d5f0980
3 changed files with 54 additions and 8 deletions

View File

@ -428,6 +428,7 @@ struct redisServer {
time_t lastfsync;
int appendfd;
int appendseldb;
time_t aof_flush_postponed_start;
char *pidfile;
pid_t bgsavechildpid;
pid_t bgrewritechildpid;