Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Jun 16, 2024
1 parent 4057535 commit 5370279
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ private boolean initBallotBox() {
ballotBoxOpts.setWaiter(this.fsmCaller);
ballotBoxOpts.setClosureQueue(this.closureQueue);
ballotBoxOpts.setNodeId(getNodeId());
// Initialize the last commited index BallotBox in to be the last snapshot index.
// Try to initialize the last committed index in BallotBox to be the last snapshot index.
long lastCommittedIndex = 0;
if (this.snapshotExecutor != null) {
lastCommittedIndex = this.snapshotExecutor.getLastSnapshotIndex();
Expand Down Expand Up @@ -1446,7 +1446,6 @@ private void executeApplyingTasks(final List<LogEntryAndClosure> tasks) {
this.logManager.appendEntries(entries, new LeaderStableClosure(entries));
// update conf.first
checkAndSetConfiguration(true);
return;
} finally {
this.writeLock.unlock();
}
Expand Down

0 comments on commit 5370279

Please sign in to comment.