Skip to content

Commit

Permalink
revert wrong change
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Oct 16, 2023
1 parent 264aaa4 commit faeaaa2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1084,8 +1084,7 @@ private DefaultSearchContext createSearchContext(
reader.indexShard().shardId(),
request.getClusterAlias()
);
// ExecutorService executor = this.enableSearchWorkerThreads ? threadPool.executor(Names.SEARCH_WORKER) : null;
ExecutorService executor = threadPool.executor(Names.SEARCH_WORKER);
ExecutorService executor = this.enableSearchWorkerThreads ? threadPool.executor(Names.SEARCH_WORKER) : null;
int maximumNumberOfSlices = determineMaximumNumberOfSlices(executor, request, resultsType);
searchContext = new DefaultSearchContext(
reader,
Expand Down

0 comments on commit faeaaa2

Please sign in to comment.