From: antirez Date: Wed, 30 Mar 2011 16:12:51 +0000 (+0200) Subject: minor change with no actual effects til the loading node config code is in place X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/6c390c0b2303247c16f42160fec3fd609cb99cb7?ds=sidebyside minor change with no actual effects til the loading node config code is in place --- diff --git a/src/cluster.c b/src/cluster.c index 225fcc54..76ea894d 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -94,9 +94,9 @@ void clusterInit(void) { * by the createClusterNode() function. */ redisLog(REDIS_NOTICE,"No cluster configuration found, I'm %.40s", server.cluster.myself->name); + clusterAddNode(server.cluster.myself); saveconf = 1; } - clusterAddNode(server.cluster.myself); if (saveconf) clusterSaveConfigOrDie(); /* We need a listening TCP port for our cluster messaging needs */ server.cfd = anetTcpServer(server.neterr,