From 0a459f7cebb0ecf2a7330619bdf4b9da51142b22 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 19 Jun 2012 03:03:11 +0200 Subject: [PATCH] using node settings to get the node name for thread names --- src/main/java/org/elasticsearch/threadpool/ThreadPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/threadpool/ThreadPool.java b/src/main/java/org/elasticsearch/threadpool/ThreadPool.java index 9086a3b0d5a..6e229b105c3 100644 --- a/src/main/java/org/elasticsearch/threadpool/ThreadPool.java +++ b/src/main/java/org/elasticsearch/threadpool/ThreadPool.java @@ -215,7 +215,7 @@ public class ThreadPool extends AbstractComponent { settings = ImmutableSettings.Builder.EMPTY_SETTINGS; } String type = settings.get("type", defaultType); - ThreadFactory threadFactory = EsExecutors.daemonThreadFactory(settings, "[" + name + "]"); + ThreadFactory threadFactory = EsExecutors.daemonThreadFactory(this.settings, "[" + name + "]"); if ("same".equals(type)) { logger.debug("creating thread_pool [{}], type [{}]", name, type); return new ExecutorHolder(MoreExecutors.sameThreadExecutor(), new Info(name, type));