Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Dec 27, 2024
1 parent ad257c3 commit 3eb69b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,11 @@ void TRaft::LeaderTimeout(ITimeSource::Time now) {
}

uint64_t TRaft::ApproveRead() {
int seqno = Seqno;
for (auto& [id, node] : Nodes) {
node->Send(CreateAppendEntries(id));
}
return VolatileState->CommitSeqno;
return seqno;
}

uint64_t TRaft::CommitSeqno() const {
Expand Down

0 comments on commit 3eb69b4

Please sign in to comment.