Skip to content

Commit 6954979

Browse files
committed
wip
1 parent 0cd3ff5 commit 6954979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ abstract class AbstractSearchAsyncAction<Result extends SearchPhaseResult> exten
150150
// it's number of active shards but use 1 as the default if no replica of a shard is active at this point.
151151
// on a per shards level we use shardIt.remaining() to increment the totalOps pointer but add 1 for the current shard result
152152
// we process hence we add one for the non active partition here.
153-
this.expectedTotalOps = shardsIts.totalSizeWith1ForEmpty();
153+
this.expectedTotalOps = shardsIts.totalSize();
154154
this.maxConcurrentRequestsPerNode = maxConcurrentRequestsPerNode;
155155
// in the case were we have less shards than maxConcurrentRequestsPerNode we don't need to throttle
156156
this.throttleConcurrentRequests = maxConcurrentRequestsPerNode < shardsIts.size();

0 commit comments

Comments
 (0)