diff --git a/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java b/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java index 1c2ad220ccd..428eeee9fc8 100644 --- a/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java +++ b/core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java @@ -76,7 +76,7 @@ public class DiscoveryNode implements Writeable, ToXContent { return Node.NODE_DATA_SETTING.get(settings); } - public static boolean ingestNode(Settings settings) { + public static boolean isIngestNode(Settings settings) { return Node.NODE_INGEST_SETTING.get(settings); } diff --git a/core/src/main/java/org/elasticsearch/node/Node.java b/core/src/main/java/org/elasticsearch/node/Node.java index 363250e07cd..5b4f32635f9 100644 --- a/core/src/main/java/org/elasticsearch/node/Node.java +++ b/core/src/main/java/org/elasticsearch/node/Node.java @@ -220,7 +220,7 @@ public class Node implements Closeable { modules.add(new ClusterModule(this.settings)); modules.add(new IndicesModule()); modules.add(new SearchModule(settings, namedWriteableRegistry)); - modules.add(new ActionModule(DiscoveryNode.ingestNode(settings), false)); + modules.add(new ActionModule(DiscoveryNode.isIngestNode(settings), false)); modules.add(new GatewayModule(settings)); modules.add(new NodeClientModule()); modules.add(new ResourceWatcherModule());