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