From 7454c7c1924405cff3082ddbf74b769f4fd865be Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 28 Jun 2012 09:56:49 +0200 Subject: [PATCH] freeing the search context should execute on the same thread, its cheap --- .../search/action/SearchServiceTransportAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/elasticsearch/search/action/SearchServiceTransportAction.java b/src/main/java/org/elasticsearch/search/action/SearchServiceTransportAction.java index 3e44a29a770..510645a01bc 100644 --- a/src/main/java/org/elasticsearch/search/action/SearchServiceTransportAction.java +++ b/src/main/java/org/elasticsearch/search/action/SearchServiceTransportAction.java @@ -44,8 +44,6 @@ import org.elasticsearch.transport.*; /** * An encapsulation of {@link org.elasticsearch.search.SearchService} operations exposed through * transport. - * - * */ public class SearchServiceTransportAction extends AbstractComponent { @@ -457,7 +455,9 @@ public class SearchServiceTransportAction extends AbstractComponent { @Override public String executor() { - return ThreadPool.Names.SEARCH; + // freeing the context is cheap, + // no need for fork it to another thread + return ThreadPool.Names.SAME; } }