Skip to content

Commit

Permalink
[Discovery] Removed METADATA block
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg authored and bleskes committed Aug 27, 2014
1 parent 4828e78 commit 424a2f6
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class DiscoverySettings extends AbstractComponent {

private final static ClusterBlock ALL = new ClusterBlock(NO_MASTER_BLOCK_ID, "no master", true, true, RestStatus.SERVICE_UNAVAILABLE, ClusterBlockLevel.ALL);
private final static ClusterBlock WRITE = new ClusterBlock(NO_MASTER_BLOCK_ID, "no master", true, false, RestStatus.SERVICE_UNAVAILABLE, EnumSet.of(ClusterBlockLevel.WRITE, ClusterBlockLevel.METADATA));
private final static ClusterBlock METADATA = new ClusterBlock(NO_MASTER_BLOCK_ID, "no master", true, false, RestStatus.SERVICE_UNAVAILABLE, EnumSet.of(ClusterBlockLevel.METADATA));

private volatile ClusterBlock noMasterBlock;
private volatile TimeValue publishTimeout = DEFAULT_PUBLISH_TIMEOUT;
Expand Down Expand Up @@ -93,8 +92,6 @@ private ClusterBlock parseNoMasterBlock(String value) {
return ALL;
} else if ("write".equals(value)) {
return WRITE;
} else if ("metadata".equals(value)) {
return METADATA;
} else {
throw new ElasticsearchIllegalArgumentException("invalid master block [" + value + "]");
}
Expand Down

0 comments on commit 424a2f6

Please sign in to comment.