mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fix a bug in sentinel.c about pub/sub link
This commit is contained in:
parent
6f4fd55762
commit
86a540a66e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user