diff --git a/src/cluster.c b/src/cluster.c index e5081936..71efe08b 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2875,7 +2875,10 @@ void clusterCommand(redisClient *c) { /* CLUSTER FORGET */ clusterNode *n = clusterLookupNode(c->argv[2]->ptr); - if (!n) { + if (n == server.cluster->myself) { + addReplyErrorFormat(c,"I tried hard but I can't forget myself..."); + return; + } else if (!n) { addReplyErrorFormat(c,"Unknown node %s", (char*)c->argv[2]->ptr); return; }