mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Sentinel: add link refcount to instance description
This commit is contained in:
parent
1029276c0d
commit
d6e1347869
@ -2538,6 +2538,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
|
|||||||
addReplyBulkLongLong(c,ri->link->pending_commands);
|
addReplyBulkLongLong(c,ri->link->pending_commands);
|
||||||
fields++;
|
fields++;
|
||||||
|
|
||||||
|
addReplyBulkCString(c,"link-refcount");
|
||||||
|
addReplyBulkLongLong(c,ri->link->refcount);
|
||||||
|
fields++;
|
||||||
|
|
||||||
if (ri->flags & SRI_FAILOVER_IN_PROGRESS) {
|
if (ri->flags & SRI_FAILOVER_IN_PROGRESS) {
|
||||||
addReplyBulkCString(c,"failover-state");
|
addReplyBulkCString(c,"failover-state");
|
||||||
addReplyBulkCString(c,(char*)sentinelFailoverStateStr(ri->failover_state));
|
addReplyBulkCString(c,(char*)sentinelFailoverStateStr(ri->failover_state));
|
||||||
|
Loading…
Reference in New Issue
Block a user