From f03656394e32e83bf9fec2f2ae84b1d8654a381f Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 28 Apr 2016 02:07:15 +0200 Subject: [PATCH] skip caching of knownURL during transferRWI (cache values not used) --- htroot/yacy/transferRWI.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.java index dae580bcf..62fcb9b38 100644 --- a/htroot/yacy/transferRWI.java +++ b/htroot/yacy/transferRWI.java @@ -184,7 +184,6 @@ public final class transferRWI { byte[] urlHash; WordReferenceRow iEntry; final HandleSet unknownURL = new RowHandleSet(Word.commonHashLength, Word.commonHashOrder, 0); - final HandleSet knownURL = new RowHandleSet(Word.commonHashLength, Word.commonHashOrder, 0); final ArrayList wordhashes = new ArrayList(); int received = 0; int blocked = 0; @@ -206,9 +205,9 @@ public final class transferRWI { iEntry = new WordReferenceRow(estring.substring(p)); urlHash = iEntry.urlhash(); - // block blacklisted entries + // block blacklisted entries if ((blockBlacklist) && (Switchboard.urlBlacklist.hashInBlacklistedCache(BlacklistType.DHT, urlHash))) { - Network.log.fine("transferRWI: blocked blacklisted URLHash '" + ASCII.String(urlHash) + "' from peer " + otherPeerName); + Network.log.fine("transferRWI: blocked blacklisted URLHash '" + ASCII.String(urlHash) + "' from peer " + otherPeerName); blocked++; continue; } @@ -236,9 +235,7 @@ public final class transferRWI { for (String id: testids) { try { try { - if (sb.index.fulltext().getLoadTime(id) >= 0) { - knownURL.put(ASCII.getBytes(id)); - } else { + if (sb.index.fulltext().getLoadTime(id) < 0) { unknownURL.put(ASCII.getBytes(id)); } } catch (IOException e) {