mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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);
|
||||
fields++;
|
||||
|
||||
addReplyBulkCString(c,"link-refcount");
|
||||
addReplyBulkLongLong(c,ri->link->refcount);
|
||||
fields++;
|
||||
|
||||
if (ri->flags & SRI_FAILOVER_IN_PROGRESS) {
|
||||
addReplyBulkCString(c,"failover-state");
|
||||
addReplyBulkCString(c,(char*)sentinelFailoverStateStr(ri->failover_state));
|
||||
|
Loading…
Reference in New Issue
Block a user