Ver Fonte

etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster"

We enable "raft.Config.CheckQuorum" by default in other
Raft initial starts. So should start with "ForceNewCluster".

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee há 7 anos atrás
pai
commit
69357adf33
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      etcdserver/raft.go

+ 1 - 0
etcdserver/raft.go

@@ -500,6 +500,7 @@ func restartAsStandaloneNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types
 		Storage:         s,
 		MaxSizePerMsg:   maxSizePerMsg,
 		MaxInflightMsgs: maxInflightMsgs,
+		CheckQuorum:     true,
 	}
 	n := raft.RestartNode(c)
 	raftStatus = n.Status