Skip to content

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

removed exit from computation in ReferenceContainerArray.get merge method an warning is still given, but method computes at normal operation see also: http://forum.yacy-websuche.de/viewtopic.php?p=20038#p20038

orbiter439b44be9e92
diff --git a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
index 170646622..a45a03f18 100644
--- a/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
+++ b/source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
@@ -211,14 +211,14 @@ public final class ReferenceContainerArray<ReferenceType extends Reference> {
ReferenceContainer<ReferenceType> c = new ReferenceContainer<ReferenceType>(this.factory, termHash, RowSet.importRowSet(a, payloadrow));
if (System.currentTimeMillis() > timeout) {
Log.logWarning("ReferenceContainerArray", "timout in index retrieval (1): " + k + " tables searched. timeout = 3000");
- return c;
+ timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
}
while (entries.hasNext()) {
c = c.merge(new ReferenceContainer<ReferenceType>(this.factory, termHash, RowSet.importRowSet(entries.next(), payloadrow)));
k++;
if (System.currentTimeMillis() > timeout) {
Log.logWarning("ReferenceContainerArray", "timout in index retrieval (2): " + k + " tables searched. timeout = 3000");
- return c;
+ timeout = Long.MAX_VALUE; // to prevent that the warning is shown again
}
}
return c;