Merge pull request #9347 from gyuho/raft-force-new-cluster

etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster"
This commit is contained in:
Gyuho Lee 2018-02-26 11:28:56 -08:00 committed by GitHub
commit 04e932ba6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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