mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
freeing the search context should execute on the same thread, its cheap
This commit is contained in:
parent
016e2e7288
commit
7454c7c192
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user