Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Fixed a minor but significant error
Browse files Browse the repository at this point in the history
  • Loading branch information
madjam committed Nov 18, 2015
1 parent a5736c0 commit 4fd6ca3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ private void commitEntries() {
// - A leadership change occurs and the new leader sends an AppendRequest with logIndex == i.
// Any follower should be able to validate that they have this entry in their log with a term that matches
// what the new leader is advertising.
context.setGlobalIndex(Math.min(globalMatchIndex - 1, 0));
context.setGlobalIndex(Math.max(globalMatchIndex - 1, 0));

// Sort the list of replicas, order by the last index that was replicated to the replica. This will allow
// us to determine the median index for all known replicated entries across all cluster members.
Expand Down

0 comments on commit 4fd6ca3

Please sign in to comment.