do not try the empty machine name

This commit is contained in:
Xiang Li 2013-07-24 10:40:17 -07:00
parent dccc8b6193
commit 0c2ffa84af

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)