do not try the empty machine name

release-0.4
Xiang Li 2013-07-24 10:40:17 -07:00
parent dccc8b6193
commit 0c2ffa84af
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@ func startRaft(securityType int) {
raftServer.StartFollower()
for _, machine := range cluster {
if len(machine) == 0 {
continue
}
err = joinCluster(raftServer, machine)
if err != nil {
debug("cannot join to cluster via machine %s %s", machine, err)