do not process node failure messages about yourself

This commit is contained in:
antirez 2011-04-08 10:17:41 +02:00
parent a55c7868c1
commit fd7a584f7a

View File

@ -632,7 +632,8 @@ int clusterProcessPacket(clusterLink *link) {
clusterNode *failing;
failing = clusterLookupNode(hdr->data.fail.about.nodename);
if (failing && !(failing->flags & REDIS_NODE_FAIL)) {
if (failing && !(failing->flags & (REDIS_NODE_FAIL|REDIS_NODE_MYSELF)))
{
redisLog(REDIS_NOTICE,
"FAIL message received from %.40s about %.40s",
hdr->sender, hdr->data.fail.about.nodename);