freeing the search context should execute on the same thread, its cheap

This commit is contained in:
Shay Banon 2012-06-28 09:56:49 +02:00
parent 016e2e7288
commit 7454c7c192

View File

@ -44,8 +44,6 @@ import org.elasticsearch.transport.*;
/** /**
* An encapsulation of {@link org.elasticsearch.search.SearchService} operations exposed through * An encapsulation of {@link org.elasticsearch.search.SearchService} operations exposed through
* transport. * transport.
*
*
*/ */
public class SearchServiceTransportAction extends AbstractComponent { public class SearchServiceTransportAction extends AbstractComponent {
@ -457,7 +455,9 @@ public class SearchServiceTransportAction extends AbstractComponent {
@Override @Override
public String executor() { public String executor() {
return ThreadPool.Names.SEARCH; // freeing the context is cheap,
// no need for fork it to another thread
return ThreadPool.Names.SAME;
} }
} }