minor change with no actual effects til the loading node config code is in place

This commit is contained in:
antirez 2011-03-30 18:12:51 +02:00
parent ef21ab960e
commit 6c390c0b23

View 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,