Skip to content

Commit

Permalink
removed exit from computation in ReferenceContainerArray.get merge me…
Browse files Browse the repository at this point in the history
…thod

an warning is still given, but method computes at normal operation
see also: http://forum.yacy-websuche.de/viewtopic.php?p=20038#p20038

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6869 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed May 11, 2010
1 parent 7b880d7 commit 439b44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/net/yacy/kelondro/rwi/ReferenceContainerArray.java
Expand Up @@ -211,14 +211,14 @@ public ReferenceContainer<ReferenceType> get(final byte[] termHash) throws IOExc
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;
Expand Down

0 comments on commit 439b44b

Please sign in to comment.