Skip to content

Commit

Permalink
feat(flexible):modify code
Browse files Browse the repository at this point in the history
  • Loading branch information
1294566108 committed Jul 26, 2023
1 parent 20345bf commit faeac76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,8 @@ public ReadIndexHeartbeatResponseClosure(final RpcResponseClosure<ReadIndexRespo
this.closure = closure;
this.respBuilder = rb;
this.quorum = quorum;
this.failPeersThreshold = quorum.getW();
this.failPeersThreshold = !options.isEnableFlexibleRaft() && peersCount % 2 == 0 ?
quorum.getW() - 1 : quorum.getW();
this.ackSuccess = 0;
this.ackFailures = 0;
this.isDone = false;
Expand Down

0 comments on commit faeac76

Please sign in to comment.