From 10b1db430a07840a0839c436a35fda80b4339eec Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 22 Nov 2014 12:04:04 +0100 Subject: [PATCH] if we have many hosts, use on-demand earlier --- source/net/yacy/crawler/HostQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/crawler/HostQueue.java b/source/net/yacy/crawler/HostQueue.java index 9d9654119..bfb086114 100644 --- a/source/net/yacy/crawler/HostQueue.java +++ b/source/net/yacy/crawler/HostQueue.java @@ -216,7 +216,7 @@ public class HostQueue implements Balancer { private Index openStack(File f, int depth) { for (int i = 0; i < 10; i++) { // we try that again if it fails because it shall not fail - if (this.onDemand && depth > 3 && (!f.exists() || f.length() < 10000)) { + if (this.onDemand && depth > 2 && (!f.exists() || f.length() < 10000)) { try { return new BufferedObjectIndex(new OnDemandOpenFileIndex(f, Request.rowdef, exceed134217727), objectIndexBufferSize); } catch (kelondroException e) {