From 8c0a59c1e95b1e066a11e5ec3db273098a84ee59 Mon Sep 17 00:00:00 2001 From: Alexey Ozeritskiy Date: Tue, 24 Dec 2024 17:21:43 +0300 Subject: [PATCH] Add message --- src/raft.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raft.cpp b/src/raft.cpp index 521dea2..25021c7 100644 --- a/src/raft.cpp +++ b/src/raft.cpp @@ -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; }