Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/raft-pre-vote' into raft-pre-vote
Browse files Browse the repository at this point in the history
# Conflicts:
#	raft-compat/go.mod
#	raft-compat/go.sum
#	raft-compat/prevote_test.go
#	raft-compat/testcluster/cluster.go
#	raft.go
#	raft_test.go
  • Loading branch information
dhiaayachi committed Mar 25, 2024
2 parents 97f6bd4 + 16a8c76 commit d4cb80f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands.go
Expand Up @@ -92,6 +92,7 @@ type RequestVoteRequest struct {
// transfer. It is required for leadership transfer to work, because servers
// wouldn't vote otherwise if they are aware of an existing leader.
LeadershipTransfer bool
PreVote bool
}

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

// Is the vote granted.
Granted bool

// Is it a preVote response
PreVote bool
}

// GetRPCHeader - See WithRPCHeader.
Expand Down

0 comments on commit d4cb80f

Please sign in to comment.