Config option to turn AOF rewrite incremental fsync on/off.

This commit is contained in:
antirez
2013-04-24 10:57:07 +02:00
parent 9ca306d874
commit b06f13e7b7
5 changed files with 23 additions and 1 deletions

View File

@ -608,6 +608,7 @@ struct redisServer {
time_t aof_rewrite_time_start; /* Current AOF rewrite start time. */
int aof_lastbgrewrite_status; /* REDIS_OK or REDIS_ERR */
unsigned long aof_delayed_fsync; /* delayed AOF fsync() counter */
int aof_rewrite_incremental_fsync;/* fsync incrementally while rewriting? */
/* RDB persistence */
long long dirty; /* Changes to DB from the last save */
long long dirty_before_bgsave; /* Used to restore dirty on failed BGSAVE */