using node settings to get the node name for thread names

This commit is contained in:
Shay Banon 2012-06-19 03:03:11 +02:00
parent 0f47518752
commit 0a459f7ceb
1 changed files with 1 additions and 1 deletions

View File

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