Skip to content

Commit

Permalink
Remove extra param in role-change event of sentinelEvent. (redis#8742)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhw authored Apr 13, 2021
1 parent 4938052 commit c6cd1e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2652,8 +2652,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
((ri->flags & (SRI_MASTER|SRI_SLAVE)) == role) ?
"+role-change" : "-role-change",
ri, "%@ new reported role is %s",
role == SRI_MASTER ? "master" : "slave",
ri->flags & SRI_MASTER ? "master" : "slave");
role == SRI_MASTER ? "master" : "slave");
}

/* None of the following conditions are processed when in tilt mode, so
Expand Down

0 comments on commit c6cd1e5

Please sign in to comment.