use a valid default

This commit is contained in:
Simon Willnauer 2016-01-15 11:58:42 +01:00
parent eb7012101a
commit 14527ed2d5
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import org.elasticsearch.common.settings.Setting;
final class AutoExpandReplicas {
// the value we recognize in the "max" position to mean all the nodes
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 max;
if (Booleans.parseBoolean(value, true) == false) {