]> git.saurik.com Git - redis.git/commitdiff
minor change with no actual effects til the loading node config code is in place
authorantirez <antirez@gmail.com>
Wed, 30 Mar 2011 16:12:51 +0000 (18:12 +0200)
committerantirez <antirez@gmail.com>
Wed, 30 Mar 2011 16:12:51 +0000 (18:12 +0200)
src/cluster.c

index 225fcc541a860eee544c21f0bf80c5954454997e..76ea894de0fc850e69f2a8f6301d3f30c4ddeb2a 100644 (file)
@@ -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,