We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13fd0b4 commit bab34c6Copy full SHA for bab34c6
1 file changed
packages/raft-core/src/core/StateMachine.ts
@@ -1243,7 +1243,7 @@ export class StateMachine implements StateMachineInterface {
1243
1244
const currentTerm = this.persistentState.getCurrentTerm();
1245
1246
- const voters = this.configManager.getVoters();
+ const voters = this.configManager.getVoters().filter((peerId) => peerId !== this.nodeId);
1247
1248
const newCommitIndex = await this.leaderState.calculateCommitIndex(currentTerm, this.logManager, voters);
1249
0 commit comments