Browse Source

if the whole cluster dies, should not panic

Xiang Li 12 years ago
parent
commit
dd2f856d63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft_server.go

+ 1 - 1
raft_server.go

@@ -91,7 +91,7 @@ func (r *raftServer) ListenAndServe() {
 		}
 		ok := joinCluster(cluster)
 		if !ok {
-			fatal("cannot rejoin to the cluster")
+			warn("the whole cluster dies! restart the cluster")
 		}
 
 		debugf("%s restart as a follower", r.name)