diff --git a/src/sentinel.c b/src/sentinel.c index bb4cc4fa7..f581fd8de 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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