mirror of
https://github.com/fluencelabs/redis
synced 2025-06-11 00:01:20 +00:00
Sentinel: receive Pub/Sub messages from slaves.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user