diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-09-29 15:07:11 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-09-29 15:07:11 +0200 |
commit | 015cb35cd5fad6f85cc7f60333dd5f225cc197e7 (patch) | |
tree | 3b47560fc25721ee0e5c682c610684f50ab86ae7 /config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java | |
parent | 210b35b7094bb09c287d27557bca005ce0926ace (diff) |
Set max=min when boost is not specified
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java index 7e4bf41a8b0..4b85c384951 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerThreadpool.java @@ -49,7 +49,7 @@ public abstract class ContainerThreadpool extends SimpleComponent implements Con var threadsElem = XmlHelper.getOptionalChild(threadpoolElem, "threads").orElse(null); if (threadsElem != null) { min = parseMultiplier(threadsElem.getTextContent()); - if (threadsElem.hasAttribute("boost")) max = parseMultiplier(threadsElem.getAttribute("boost")); + max = threadsElem.hasAttribute("boost") ? parseMultiplier(threadsElem.getAttribute("boost")) : min; } else if (minElem != null) { min = parseFixed(minElem.getTextContent()); } |