Переглянути джерело

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 8 роки тому
батько
коміт
69357adf33
1 змінених файлів з 1 додано та 0 видалено
  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