Skip to content

Commit

Permalink
Sentinel: add link refcount to instance description
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed May 11, 2015
1 parent 1029276 commit d6e1347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d6e1347

Please sign in to comment.