Revert temporary compiler bug workaround

This reverts commit df5f1b1ee9.

Closes #16097
This commit is contained in:
Jason Tedor 2016-01-20 14:37:12 -05:00
parent 22318cb7e4
commit bd1eefa5be
1 changed files with 2 additions and 3 deletions

View File

@ -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);
} }