Skip to content

Commit

Permalink
Fix minvotes for even number of servers (follow-up)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Dec 11, 2023
1 parent 81d3505 commit 35b1f89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/raft.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ class TRaft {
return Id;
}

int GetMinVotes() const {
return MinVotes;
}

int GetNpeers() const {
return Npeers;
}

int GetNservers() const {
return Nservers;
}

private:
void Candidate(ITimeSource::Time now, TMessageHolder<TMessage> message);
void Follower(ITimeSource::Time now, TMessageHolder<TMessage> message);
Expand Down

0 comments on commit 35b1f89

Please sign in to comment.