mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Sentinel: added config-epoch to SENTINEL masters output.
This commit is contained in:
parent
d2bc6dc39a
commit
24158d1488
@ -1939,6 +1939,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
|
||||
|
||||
/* Only masters */
|
||||
if (ri->flags & SRI_MASTER) {
|
||||
addReplyBulkCString(c,"config-epoch");
|
||||
addReplyBulkLongLong(c,ri->config_epoch);
|
||||
fields++;
|
||||
|
||||
addReplyBulkCString(c,"num-slaves");
|
||||
addReplyBulkLongLong(c,dictSize(ri->slaves));
|
||||
fields++;
|
||||
|
Loading…
Reference in New Issue
Block a user