This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 82cb5ee66 RATIS-1756. Consistent usage of gapThreshold in
getMajorityMin (#795)
82cb5ee66 is described below
commit 82cb5ee66d93675cbd746887e4aa7278b6fee759
Author: Symious <[email protected]>
AuthorDate: Wed Dec 7 17:41:40 2022 +0800
RATIS-1756. Consistent usage of gapThreshold in getMajorityMin (#795)
---
.../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 f390f70d3..a23e8d44c 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
@@ -873,7 +873,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));
}
}