Skip to content

Commit 04e932b

Browse files
authored
Merge pull request #9347 from gyuho/raft-force-new-cluster
etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster"
2 parents 5382541 + 69357ad commit 04e932b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

etcdserver/raft.go

+1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ func restartAsStandaloneNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types
500500
Storage: s,
501501
MaxSizePerMsg: maxSizePerMsg,
502502
MaxInflightMsgs: maxInflightMsgs,
503+
CheckQuorum: true,
503504
}
504505
n := raft.RestartNode(c)
505506
raftStatus = n.Status

0 commit comments

Comments
 (0)