This is an automated email from the ASF dual-hosted git repository. bdeggleston pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
The following commit(s) were added to refs/heads/trunk by this push: new 5523cfe Schema based accord fast path configuration 5523cfe is described below commit 5523cfefef163efee53c8cc57595f5b50ea4f363 Author: Blake Eggleston <bl...@ultrablake.com> AuthorDate: Wed Dec 6 16:01:32 2023 -0800 Schema based accord fast path configuration Patch by Blake Eggleston; Reviewed by David Capwell for CASSANDRA-19009 --- accord-core/src/main/java/accord/topology/Shard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accord-core/src/main/java/accord/topology/Shard.java b/accord-core/src/main/java/accord/topology/Shard.java index bbfe482..893feab 100644 --- a/accord-core/src/main/java/accord/topology/Shard.java +++ b/accord-core/src/main/java/accord/topology/Shard.java @@ -68,7 +68,7 @@ public class Shard } @VisibleForTesting - static int maxToleratedFailures(int replicas) + public static int maxToleratedFailures(int replicas) { return (replicas - 1) / 2; } @@ -85,7 +85,7 @@ public class Shard return rejectCount > fastPathElectorate.size() - fastPathQuorumSize; } - static int slowPathQuorumSize(int replicas) + public static int slowPathQuorumSize(int replicas) { return replicas - maxToleratedFailures(replicas); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org