提交 9f0e52a1 编写于 作者: A antirez

Sentinel: receive Pub/Sub messages from slaves.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册