Skip to content

Commit

Permalink
Add message
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Dec 24, 2024
1 parent 5d01426 commit 8c0a59c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ TVolatileState& TVolatileState::CommitAdvance(int nservers, const IState& state)
if (state.LogTerm(commitIndex) == state.CurrentTerm) {
CommitIndex = commitIndex;
}
// TODO: If state.LogTerm(commitIndex) < state.CurrentTerm need to append empty message to log
return *this;
}

Expand Down

0 comments on commit 8c0a59c

Please sign in to comment.