mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +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 */
|
/* 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);
|
ri->pc = redisAsyncConnect(ri->addr->ip,ri->addr->port);
|
||||||
if (ri->pc->err) {
|
if (ri->pc->err) {
|
||||||
sentinelEvent(REDIS_DEBUG,"-pubsub-link-reconnection",ri,"%@ #%s",
|
sentinelEvent(REDIS_DEBUG,"-pubsub-link-reconnection",ri,"%@ #%s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user