mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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 */
|
/* 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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user