mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 13:02:14 +00:00
fix a bug in sentinel.c about pub/sub link
This commit is contained in:
parent
dd239c37db
commit
e5c577e679
@ -1609,9 +1609,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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user