Skip to content

Commit

Permalink
1321312312
Browse files Browse the repository at this point in the history
  • Loading branch information
578223592 committed Feb 22, 2024
1 parent af9e038 commit ad53535
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/raftCore/raft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ void Raft::leaderUpdateCommitIndex() {
// DPrintf("[func-leaderUpdateCommitIndex()-rf{%v}] Leader %d(term%d) commitIndex
// %d",rf.me,rf.me,rf.currentTerm,rf.commitIndex)
}
shit

//进来前要保证logIndex是存在的,即≥rf.lastSnapshotIncludeIndex ,而且小于等于rf.getLastLogIndex()
bool Raft::matchLog(int logIndex, int logTerm) {
Expand Down

0 comments on commit ad53535

Please sign in to comment.