mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Sentinel: receive Pub/Sub messages from slaves.
This commit is contained in:
parent
dfa5f8b777
commit
1569af1f23
@ -1334,7 +1334,7 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) {
|
||||
}
|
||||
}
|
||||
/* Pub / Sub */
|
||||
if ((ri->flags & SRI_MASTER) && ri->pc == NULL) {
|
||||
if ((ri->flags & (SRI_MASTER|SRI_SLAVE)) && ri->pc == NULL) {
|
||||
ri->pc = redisAsyncConnect(ri->addr->ip,ri->addr->port);
|
||||
if (ri->pc->err) {
|
||||
sentinelEvent(REDIS_DEBUG,"-pubsub-link-reconnection",ri,"%@ #%s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user