|
|
@@ -411,6 +411,7 @@ func startNode(cfg ServerConfig, cl *membership.RaftCluster, ids []types.ID) (id
|
|
|
MaxSizePerMsg: maxSizePerMsg,
|
|
|
MaxInflightMsgs: maxInflightMsgs,
|
|
|
CheckQuorum: true,
|
|
|
+ PreVote: cfg.PreVote,
|
|
|
}
|
|
|
|
|
|
n = raft.StartNode(c, peers)
|
|
|
@@ -445,6 +446,7 @@ func restartNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types.ID, *member
|
|
|
MaxSizePerMsg: maxSizePerMsg,
|
|
|
MaxInflightMsgs: maxInflightMsgs,
|
|
|
CheckQuorum: true,
|
|
|
+ PreVote: cfg.PreVote,
|
|
|
}
|
|
|
|
|
|
n := raft.RestartNode(c)
|
|
|
@@ -501,6 +503,7 @@ func restartAsStandaloneNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types
|
|
|
MaxSizePerMsg: maxSizePerMsg,
|
|
|
MaxInflightMsgs: maxInflightMsgs,
|
|
|
CheckQuorum: true,
|
|
|
+ PreVote: cfg.PreVote,
|
|
|
}
|
|
|
n := raft.RestartNode(c)
|
|
|
raftStatus = n.Status
|