Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

if we have many hosts, use on-demand earlier

Michael Peter Christen10b1db430a07
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) {