fixed network switch process - crawling did not work after a switch before this fix

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6592 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent fd7b348973
commit 473b11033d

@ -237,7 +237,7 @@ public final class CrawlStacker {
return "post url not allowed";
}
final DigestURI referrerURL = (entry.referrerhash() == null) ? null : nextQueue.getURL(entry.referrerhash());
final DigestURI referrerURL = (entry.referrerhash() == null || entry.referrerhash().length() == 0) ? null : nextQueue.getURL(entry.referrerhash());
// add domain to profile domain list
if ((profile.domFilterDepth() != Integer.MAX_VALUE) || (profile.domMaxPages() != Integer.MAX_VALUE)) {

@ -830,13 +830,6 @@ public final class Switchboard extends serverSwitch {
", " + robots.size() + " entries" +
", " + ppRamString(robotsDBFile.length()/1024));
// start a loader
log.logConfig("Starting Crawl Loader");
this.crawlQueues = new CrawlQueues(this, this.queuesRoot);
this.crawlQueues.noticeURL.setMinimumDelta(
this.getConfigLong("minimumLocalDelta", this.crawlQueues.noticeURL.getMinimumLocalDelta()),
this.getConfigLong("minimumGlobalDelta", this.crawlQueues.noticeURL.getMinimumGlobalDelta()));
this.crawlStacker = new CrawlStacker(
this.crawlQueues,
this.crawler,

Loading…
Cancel
Save