Revert temporary compiler bug workaround
This reverts commit df5f1b1ee9
.
Closes #16097
This commit is contained in:
parent
22318cb7e4
commit
bd1eefa5be
|
@ -30,9 +30,8 @@ final class AutoExpandReplicas {
|
||||||
// the value we recognize in the "max" position to mean all the nodes
|
// the value we recognize in the "max" position to mean all the nodes
|
||||||
private static final String ALL_NODES_VALUE = "all";
|
private static final String ALL_NODES_VALUE = "all";
|
||||||
public static final Setting<AutoExpandReplicas> SETTING = new Setting<>(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "false", (value) -> {
|
public static final Setting<AutoExpandReplicas> SETTING = new Setting<>(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "false", (value) -> {
|
||||||
// TODO change the following back to be final, https://github.com/elastic/elasticsearch/issues/16097
|
final int min;
|
||||||
int min;
|
final int max;
|
||||||
int max;
|
|
||||||
if (Booleans.parseBoolean(value, true) == false) {
|
if (Booleans.parseBoolean(value, true) == false) {
|
||||||
return new AutoExpandReplicas(0, 0, false);
|
return new AutoExpandReplicas(0, 0, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue