use a valid default
This commit is contained in:
parent
eb7012101a
commit
14527ed2d5
|
@ -24,7 +24,7 @@ import org.elasticsearch.common.settings.Setting;
|
||||||
final class AutoExpandReplicas {
|
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, "", (value) -> {
|
public static final Setting<AutoExpandReplicas> SETTING = new Setting<>(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "false", (value) -> {
|
||||||
final int min;
|
final int min;
|
||||||
final int max;
|
final int max;
|
||||||
if (Booleans.parseBoolean(value, true) == false) {
|
if (Booleans.parseBoolean(value, true) == false) {
|
||||||
|
|
Loading…
Reference in New Issue