|
VolatileState->ElectionDue = MakeElection(now); |
void TRaft::OnAppendEntries(ITimeSource::Time now,
TMessageHolder<TAppendEntriesRequest> message) {
if (message->Term < State->CurrentTerm) {
VolatileState->ElectionDue = MakeElection(now);
//...
}
// ...
}
This behavior delayed the initiation of a new round of elections and reduced system availability.
miniraft-cpp/miniraft/raft.cpp
Line 192 in 68f990b
This behavior delayed the initiation of a new round of elections and reduced system availability.