mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fixed getSize() which can use the cache size while the crawl is running
This commit is contained in:
parent
96912c9471
commit
a94c537afc
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user