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 336d722fba
commit d264122f6a
5 changed files with 23 additions and 1 deletions

View File

@ -762,6 +762,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 */