Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: extract voting management into a separate Voting struct #853

Merged
merged 1 commit into from
May 24, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented May 24, 2023

Changelog

Refactor: extract voting management into a separate Voting struct

Voting should be a standalone state that does not depend on
RaftState.

Although it won't happen, the vote for a candidate(Voting) can be
different from the vote in RaftState.


This change is Reviewable

`Voting` should be a standalone state that does not depend on
`RaftState`.

Although it won't happen, the `vote` for a candidate(`Voting`) can be
different from the `vote` in `RaftState`.
@drmingdrmer drmingdrmer merged commit 4ab38e7 into databendlabs:main May 24, 2023
@drmingdrmer drmingdrmer deleted the 45-leader-lease branch May 24, 2023 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant