release after we notify the user
This commit is contained in:
parent
a208eb5a50
commit
25433ace48
|
@ -171,8 +171,8 @@ public class TransportSearchDfsQueryThenFetchAction extends TransportSearchTypeA
|
|||
final Map<SearchShardTarget, ExtTIntArrayList> docIdsToLoad = searchPhaseController.docIdsToLoad(sortedShardList);
|
||||
|
||||
if (docIdsToLoad.isEmpty()) {
|
||||
releaseIrrelevantSearchContexts(queryResults, docIdsToLoad);
|
||||
finishHim();
|
||||
releaseIrrelevantSearchContexts(queryResults, docIdsToLoad);
|
||||
}
|
||||
|
||||
final AtomicInteger counter = new AtomicInteger(docIdsToLoad.size());
|
||||
|
|
|
@ -85,8 +85,8 @@ public class TransportSearchQueryThenFetchAction extends TransportSearchTypeActi
|
|||
final Map<SearchShardTarget, ExtTIntArrayList> docIdsToLoad = searchPhaseController.docIdsToLoad(sortedShardList);
|
||||
|
||||
if (docIdsToLoad.isEmpty()) {
|
||||
releaseIrrelevantSearchContexts(queryResults, docIdsToLoad);
|
||||
finishHim();
|
||||
releaseIrrelevantSearchContexts(queryResults, docIdsToLoad);
|
||||
}
|
||||
|
||||
final AtomicInteger counter = new AtomicInteger(docIdsToLoad.size());
|
||||
|
|
Loading…
Reference in New Issue