diff --git a/src/sentinel.c b/src/sentinel.c index ed2f56d9d..e846b0fcb 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1607,9 +1607,8 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) { } } /* Clear the DISCONNECTED flags only if we have both the connections - * (or just the commands connection if this is a slave or a - * sentinel instance). */ - if (ri->cc && (ri->flags & (SRI_SLAVE|SRI_SENTINEL) || ri->pc)) + * (or just the commands connection if this is a sentinel instance). */ + if (ri->cc && (ri->flags & SRI_SENTINEL || ri->pc)) ri->flags &= ~SRI_DISCONNECTED; }