From 6c390c0b2303247c16f42160fec3fd609cb99cb7 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 30 Mar 2011 18:12:51 +0200 Subject: [PATCH] minor change with no actual effects til the loading node config code is in place --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.47.2