This commit is contained in:
antirez
2011-10-31 11:13:28 +01:00
parent 58732c23d5
commit 8996bf7720
5 changed files with 33 additions and 6 deletions

View File

@@ -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 */