Remove extra param in role-change event of sentinelEvent. (#8742)

This commit is contained in:
Huang Zhw 2021-04-14 01:19:42 +08:00 committed by GitHub
parent 4938052f6b
commit c6cd1e59b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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