Diskless sync delay is now configurable.

This commit is contained in:
antirez
2014-10-27 10:36:30 +01:00
parent 2882f819f4
commit 6bbeb8c535
4 changed files with 17 additions and 3 deletions

View File

@ -1481,6 +1481,7 @@ void initServerConfig(void) {
server.repl_down_since = 0; /* Never connected, repl is down since EVER. */
server.repl_disable_tcp_nodelay = REDIS_DEFAULT_REPL_DISABLE_TCP_NODELAY;
server.repl_diskless_sync = REDIS_DEFAULT_REPL_DISKLESS_SYNC;
server.repl_diskless_sync_delay = REDIS_DEFAULT_REPL_DISKLESS_SYNC_DELAY;
server.slave_priority = REDIS_DEFAULT_SLAVE_PRIORITY;
server.master_repl_offset = 0;