Skip to content

Commit d4cb80f

Browse files
committed
Merge remote-tracking branch 'origin/raft-pre-vote' into raft-pre-vote
# Conflicts: # raft-compat/go.mod # raft-compat/go.sum # raft-compat/prevote_test.go # raft-compat/testcluster/cluster.go # raft.go # raft_test.go
2 parents 97f6bd4 + 16a8c76 commit d4cb80f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands.go

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ type RequestVoteRequest struct {
9292
// transfer. It is required for leadership transfer to work, because servers
9393
// wouldn't vote otherwise if they are aware of an existing leader.
9494
LeadershipTransfer bool
95+
PreVote bool
9596
}
9697

9798
// GetRPCHeader - See WithRPCHeader.
@@ -113,6 +114,9 @@ type RequestVoteResponse struct {
113114

114115
// Is the vote granted.
115116
Granted bool
117+
118+
// Is it a preVote response
119+
PreVote bool
116120
}
117121

118122
// GetRPCHeader - See WithRPCHeader.

0 commit comments

Comments
 (0)