Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed double-check
Michael Peter Christena049761e0c29
diff --git a/source/net/yacy/search/query/RWIProcess.java b/source/net/yacy/search/query/RWIProcess.javaindex 5514fa3fd..50d622809 100644--- a/source/net/yacy/search/query/RWIProcess.java+++ b/source/net/yacy/search/query/RWIProcess.java@@ -338,6 +338,11 @@ public final class RWIProcess extends Threadassert (iEntry.urlhash().length == index.row().primaryKeyLength);//if (iEntry.urlHash().length() != index.row().primaryKeyLength) continue;+ // doublecheck for urls+ if (this.urlhashes.has(iEntry.urlhash())) {+ continue pollloop;+ }+// increase flag countsfor ( int j = 0; j < 32; j++ ) {if ( iEntry.flags().get(j) ) {@@ -432,9 +437,7 @@ public final class RWIProcess extends Thread}}- // finally make a double-check and insert result to stack- // the url hashes should be unique, no reason to check that- //if (!this.urlhashes.has(iEntry.urlhash())) {+ // finally extend the double-check and insert result to stackthis.urlhashes.putUnique(iEntry.urlhash());rankingtryloop: while ( true ) {try {