Sentinel: added config-epoch to SENTINEL masters output.

This commit is contained in:
antirez 2013-11-12 17:21:48 +01:00
parent d2bc6dc39a
commit 24158d1488

View File

@ -1939,6 +1939,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
/* Only masters */ /* Only masters */
if (ri->flags & SRI_MASTER) { if (ri->flags & SRI_MASTER) {
addReplyBulkCString(c,"config-epoch");
addReplyBulkLongLong(c,ri->config_epoch);
fields++;
addReplyBulkCString(c,"num-slaves"); addReplyBulkCString(c,"num-slaves");
addReplyBulkLongLong(c,dictSize(ri->slaves)); addReplyBulkLongLong(c,dictSize(ri->slaves));
fields++; fields++;