From: antirez Date: Mon, 22 Oct 2012 17:21:47 +0000 (+0200) Subject: A filed called slave_read_only added in INFO output. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/99d7dbe669c1531012b0f33a8a04af9fca76d593 A filed called slave_read_only added in INFO output. This was an important information missing from the INFO output in the replication section. It obviously reflects if the slave is read only or not. --- diff --git a/src/redis.c b/src/redis.c index ddaa4a62..463dc2aa 100644 --- a/src/redis.c +++ b/src/redis.c @@ -2070,7 +2070,10 @@ sds genRedisInfoString(char *section) { (long)server.unixtime-server.repl_down_since); } info = sdscatprintf(info, - "slave_priority:%d\r\n", server.slave_priority); + "slave_priority:%d\r\n" + "slave_read_only:%d\r\n", + server.slave_priority, + server.repl_slave_ro); } info = sdscatprintf(info, "connected_slaves:%lu\r\n",