Skip to content

Commit

Permalink
add missing flags in sentinel instance info (redis#8682)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwware authored Mar 22, 2021
1 parent eef4593 commit 6bf81eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3289,6 +3289,8 @@ void addReplySentinelRedisInstance(client *c, sentinelRedisInstance *ri) {
if (ri->flags & SRI_RECONF_SENT) flags = sdscat(flags,"reconf_sent,");
if (ri->flags & SRI_RECONF_INPROG) flags = sdscat(flags,"reconf_inprog,");
if (ri->flags & SRI_RECONF_DONE) flags = sdscat(flags,"reconf_done,");
if (ri->flags & SRI_FORCE_FAILOVER) flags = sdscat(flags,"force_failover,");
if (ri->flags & SRI_SCRIPT_KILL_SENT) flags = sdscat(flags,"script_kill_sent,");

if (sdslen(flags) != 0) sdsrange(flags,0,-2); /* remove last "," */
addReplyBulkCString(c,flags);
Expand Down

0 comments on commit 6bf81eb

Please sign in to comment.