fixed getSize() which can use the cache size while the crawl is running

This commit is contained in:
Michael Peter Christen 2012-10-29 11:56:07 +01:00
parent 96912c9471
commit a94c537afc

View File

@ -458,7 +458,7 @@ public class MirrorSolrConnector extends AbstractSolrConnector implements SolrCo
long s = 0;
if (this.solr0 != null) s += this.solr0.getSize();
if (this.solr1 != null) s += this.solr1.getSize();
return s;
return Math.max(this.documentCache.size(), Math.max(this.hitCache.size(), s));
}
public int nameCacheHitSize() {