From 1569af1f2390fa746e8ad363949cfc23a3407199 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 12 Nov 2013 23:07:33 +0100 Subject: [PATCH] Sentinel: receive Pub/Sub messages from slaves. --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index af3c264d..e66b8b84 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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",