This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 87859219d RATIS-1756. Consistent usage of gapThreshold in
getMajorityMin (#795)
87859219d is described below
commit 87859219dccd1d829df27d8ab5e92d636df7b0e6
Author: Symious <[email protected]>
AuthorDate: Wed Dec 7 17:41:40 2022 +0800
RATIS-1756. Consistent usage of gapThreshold in getMajorityMin (#795)
(cherry picked from commit 82cb5ee66d93675cbd746887e4aa7278b6fee759)
---
.../src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java
b/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java
index e14653225..4a9c07bee 100644
---
a/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java
+++
b/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java
@@ -799,7 +799,7 @@ class LeaderStateImpl implements LeaderState {
}
final long[] indicesInOldConf = getSorted(oldFollowers,
includeSelfInOldConf, followerIndex, logIndex);
- final MinMajorityMax oldConf = MinMajorityMax.valueOf(indicesInOldConf,
followerMaxGapThreshold);
+ final MinMajorityMax oldConf = MinMajorityMax.valueOf(indicesInOldConf,
gapThreshold);
return Optional.of(newConf.combine(oldConf));
}
}