mirror of https://github.com/apache/lucene.git
For simulated queries count also buffered updates.
This commit is contained in:
parent
9481c1f623
commit
918b11c7ce
|
@ -1617,6 +1617,10 @@ public class SimClusterStateProvider implements ClusterStateProvider {
|
|||
ReplicaInfo ri = getReplicaInfo(r);
|
||||
Number numDocs = (Number)ri.getVariable("SEARCHER.searcher.numDocs", 0L);
|
||||
count.addAndGet(numDocs.longValue());
|
||||
AtomicLong bufferedUpdates = (AtomicLong)sliceProperties.get(collection).get(s.getName()).get(BUFFERED_UPDATES);
|
||||
if (bufferedUpdates != null) {
|
||||
count.addAndGet(bufferedUpdates.get());
|
||||
}
|
||||
}
|
||||
QueryResponse rsp = new QueryResponse();
|
||||
NamedList<Object> values = new NamedList<>();
|
||||
|
|
Loading…
Reference in New Issue