X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/58732c23d53d6fc652668a516556ea182b0ed0f8..8996bf77204b6084796608ebad3b1688212d8bfc:/src/redis.h diff --git a/src/redis.h b/src/redis.h index 54b9fc11..dda0f6c9 100644 --- a/src/redis.h +++ b/src/redis.h @@ -57,6 +57,9 @@ #define REDIS_SLOWLOG_MAX_LEN 64 #define REDIS_MAX_CLIENTS 10000 +#define REDIS_REPL_TIMEOUT 60 +#define REDIS_REPL_PING_SLAVE_PERIOD 10 + /* Hash table parameters */ #define REDIS_HT_MINFILL 10 /* Minimal hash table fill 10% */ @@ -591,6 +594,8 @@ struct redisServer { char *masterauth; char *masterhost; int masterport; + int repl_ping_slave_period; + int repl_timeout; redisClient *master; /* client that is master for this slave */ int repl_syncio_timeout; /* timeout for synchronous I/O calls */ int replstate; /* replication status if the instance is a slave */