Browse Source

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

etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster"
Gyuho Lee 7 years ago
parent
commit
04e932ba6f
1 changed files with 1 additions and 0 deletions
  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,
 		Storage:         s,
 		MaxSizePerMsg:   maxSizePerMsg,
 		MaxSizePerMsg:   maxSizePerMsg,
 		MaxInflightMsgs: maxInflightMsgs,
 		MaxInflightMsgs: maxInflightMsgs,
+		CheckQuorum:     true,
 	}
 	}
 	n := raft.RestartNode(c)
 	n := raft.RestartNode(c)
 	raftStatus = n.Status
 	raftStatus = n.Status