From d7d90442f5c7af8d614093e2008864ca8eccb5b3 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 22 Aug 2013 14:53:53 +0200 Subject: [PATCH] Cluster: set event handler in cluster bus listening socket. The commit using listenToPort() introduced this bug by no longer creating the event handler to handle incoming messages from the cluster bus. --- src/cluster.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cluster.c b/src/cluster.c index fdd47fe0c..3710db144 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -259,6 +259,15 @@ void clusterInit(void) { server.cfd,&server.cfd_count) == REDIS_ERR) { exit(1); + } else { + int j; + + for (j = 0; j < server.cfd_count; j++) { + if (aeCreateFileEvent(server.el, server.cfd[j], AE_READABLE, + clusterAcceptHandler, NULL) == AE_ERR) + redisPanic("Unrecoverable error creating Redis Cluster " + "file event."); + } } /* The slots -> keys map is a sorted set. Init it. */