diff options
author | Harald Musum <musum@yahooinc.com> | 2023-03-29 14:14:49 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-03-29 14:14:49 +0200 |
commit | d1d827fdcaf636f927a1e79637f3dca2d89f1dcb (patch) | |
tree | caff70f77b8f24a21358502135ca2a52d3851eb1 /clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java | |
parent | d3732a7476d2504580c474f4792619cff01fddd3 (diff) |
Simplify NodeStateChangeChecker constructor
Diffstat (limited to 'clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java')
-rw-r--r-- | clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java index 57a4f66ef17..9538167c6de 100644 --- a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java +++ b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java @@ -136,10 +136,9 @@ public class ContentCluster { */ public NodeStateChangeChecker.Result calculateEffectOfNewState( Node node, ClusterState clusterState, SetUnitStateRequest.Condition condition, - NodeState oldState, NodeState newState, boolean inMoratorium, int maxNumberOfGroupsAllowedToBeDown) { + NodeState oldState, NodeState newState, boolean inMoratorium) { - NodeStateChangeChecker nodeStateChangeChecker = - new NodeStateChangeChecker(distribution, clusterInfo, inMoratorium, maxNumberOfGroupsAllowedToBeDown); + NodeStateChangeChecker nodeStateChangeChecker = new NodeStateChangeChecker(this, inMoratorium); return nodeStateChangeChecker.evaluateTransition(node, clusterState, condition, oldState, newState); } |