From 86a540a66e3a429ada1efe25534c8db255ac9895 Mon Sep 17 00:00:00 2001 From: huangz1990 Date: Tue, 26 Nov 2013 19:55:51 +0800 Subject: [PATCH] fix a bug in sentinel.c about pub/sub link --- src/sentinel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index ed2f56d9..e846b0fc 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1607,9 +1607,8 @@ void sentinelReconnectInstance(sentinelRedisInstance *ri) { } } /* Clear the DISCONNECTED flags only if we have both the connections - * (or just the commands connection if this is a slave or a - * sentinel instance). */ - if (ri->cc && (ri->flags & (SRI_SLAVE|SRI_SENTINEL) || ri->pc)) + * (or just the commands connection if this is a sentinel instance). */ + if (ri->cc && (ri->flags & SRI_SENTINEL || ri->pc)) ri->flags &= ~SRI_DISCONNECTED; }