Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Merge commit 'fa08ed5ae5d72bddc3cc6a662b23103579e86109' into quix0r
Michael Christenec26b2bea4b7
diff --cc source/de/anomic/crawler/CrawlQueues.javaindex 1abc88867,5daaddad9..440b58fe0--- a/source/de/anomic/crawler/CrawlQueues.java+++ b/source/de/anomic/crawler/CrawlQueues.java@@@ -196,9 -218,12 +218,11 @@@ public class CrawlQueuesreturn this.noticeURL.stackSize(NoticedURL.StackType.CORE) + this.noticeURL.stackSize(NoticedURL.StackType.NOLOAD);}-- public boolean coreCrawlJob() {-++ public boolean coreCrawlJob() {+ final boolean robinsonPrivateCase = (this.sb.isRobinsonMode() &&+ !this.sb.getConfig(SwitchboardConstants.CLUSTER_MODE, "").equals(SwitchboardConstants.CLUSTER_MODE_PUBLIC_CLUSTER));- if (coreCrawlJobSize() <= 20 && limitCrawlJobSize() > 0) {- if ((robinsonPrivateCase || coreCrawlJobSize() <= 20) && limitCrawlJobSize() > 0) {++ if ((robinsonPrivateCase || coreCrawlJobSize() <= 20) && limitCrawlJobSize() > 0) {// move some tasks to the core crawl job so we have something to dofinal int toshift = Math.min(10, limitCrawlJobSize()); // this cannot be a big number because the balancer makes a forced waiting if it cannot balancefor (int i = 0; i < toshift; i++) {@@@ -394,13 -434,16 +433,16 @@@}if (remoteTriggeredCrawlJobSize() > 200) {- if (this.log.isFine()) this.log.logFine("remoteCrawlLoaderJob: the remote-triggered crawl job queue is filled, omitting processing");+ if (this.log.isFine()) {+ this.log.logFine("remoteCrawlLoaderJob: the remote-triggered crawl job queue is filled, omitting processing");+ }return false;}--- // Determine ratio local/remote, if lower than 1000 do not do any remote jobs- if (!isLocalRemoteRatioReached()) {- if (this.log.isFine()) this.log.logFine("remoteCrawlLoaderJob: a local crawl is running, omitting processing");+++ if (coreCrawlJobSize() > 0 /*&& sb.indexingStorageProcessor.queueSize() > 0*/) {+ if (this.log.isFine()) {+ this.log.logFine("remoteCrawlLoaderJob: a local crawl is running, omitting processing");- }++ }return false;}diff --cc source/net/yacy/kelondro/blob/ArrayStack.javaindex e72fec70f,72d83e51f..72d83e51fmode 100644,100755..100644--- a/source/net/yacy/kelondro/blob/ArrayStack.java+++ b/source/net/yacy/kelondro/blob/ArrayStack.java