Skip to content

Commit

Permalink
Merge pull request #9347 from gyuho/raft-force-new-cluster
Browse files Browse the repository at this point in the history
etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster"
  • Loading branch information
gyuho authored Feb 26, 2018
2 parents 5382541 + 69357ad commit 04e932b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etcdserver/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04e932b

Please sign in to comment.