Commit 9f0e52a1 authored by antirez's avatar antirez
Browse files

Sentinel: receive Pub/Sub messages from slaves.

parent f7604b4c
......@@ -1336,7 +1336,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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment