summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Hui <wen.hui.ware@gmail.com>2021-03-22 14:13:30 -0400
committerGitHub <noreply@github.com>2021-03-22 20:13:30 +0200
commit6bf81eb7b102b5c772c887b862716370151cc197 (patch)
tree3f98d0b61ca94ad6ae1133cda04e82e7c5486fb4
parenteef45934fa1ef20d7297da2871fac87c72ece20a (diff)
downloadredis-6bf81eb7b102b5c772c887b862716370151cc197.tar.gz
add missing flags in sentinel instance info (#8682)
-rw-r--r--src/sentinel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index fbd345a6d..3d57ca7fe 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -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);