diff --git a/src/raft.cpp b/src/raft.cpp index 9187276..aed6e58 100644 --- a/src/raft.cpp +++ b/src/raft.cpp @@ -491,6 +491,14 @@ void TRaft::ProcessTimeout(ITimeSource::Time now) { VolatileState = std::move(nextVolatileState); StateName = EState::LEADER; + + // Add fake empty entry for faster commit + // + { + auto empty = NewHoldedMessage(); + empty->Term = State->CurrentTerm; + State->Append(std::move(empty)); + } } }