diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-07-21 09:11:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:11:53 +0200 |
commit | 8d315ba956eb0dc814e92e180e3b8533b81c6e61 (patch) | |
tree | b5e62cdc21315b84e92214858b0e193a46d88468 /config-model | |
parent | 3e40e5363a3b76a72910dbe701ec05294d17ec30 (diff) | |
parent | 97bd65b51e942fb81eeb43b14b03cad8d2474c6d (diff) |
Merge pull request #27854 from vespa-engine/bratseth/scale-down-less
Don't scale down if we are likely to scale back up
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedFields.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedFields.java b/config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedFields.java index 8a95edd0467..7fd16826667 100644 --- a/config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedFields.java +++ b/config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedFields.java @@ -188,10 +188,10 @@ public class ConvertParsedFields { for (var dictOp : parsed.getDictionaryOptions()) { var dictionary = field.getOrSetDictionary(); switch (dictOp) { - case HASH: dictionary.updateType(Dictionary.Type.HASH); break; - case BTREE: dictionary.updateType(Dictionary.Type.BTREE); break; - case CASED: dictionary.updateMatch(Case.CASED); break; - case UNCASED: dictionary.updateMatch(Case.UNCASED); break; + case HASH -> dictionary.updateType(Dictionary.Type.HASH); + case BTREE -> dictionary.updateType(Dictionary.Type.BTREE); + case CASED -> dictionary.updateMatch(Case.CASED); + case UNCASED -> dictionary.updateMatch(Case.UNCASED); } } for (var index : parsed.getIndexes()) { |