From 14384e7a45b8e4d4ed25cd3b69cc98cb41dd54f8 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sat, 19 Apr 2008 03:02:44 +0000 Subject: [PATCH] deactivated unnecessary and very CPU-intensive deletion check for blacklisted URLs in index receive git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4713 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/transferRWI.java | 4 ++-- htroot/yacy/transferURL.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.java index 6f8479a1c..32de6bfc7 100644 --- a/htroot/yacy/transferRWI.java +++ b/htroot/yacy/transferRWI.java @@ -160,8 +160,8 @@ public final class transferRWI { // block blacklisted entries if ((blockBlacklist) && (plasmaSwitchboard.urlBlacklist.hashInBlacklistedCache(indexReferenceBlacklist.BLACKLIST_DHT, urlHash))) { - int deleted = sb.wordIndex.tryRemoveURLs(urlHash); - yacyCore.log.logFine("transferRWI: blocked blacklisted URLHash '" + urlHash + "' from peer " + otherPeerName + "; deleted " + deleted + " URL entries from RWIs"); + //int deleted = sb.wordIndex.tryRemoveURLs(urlHash); + //yacyCore.log.logFine("transferRWI: blocked blacklisted URLHash '" + urlHash + "' from peer " + otherPeerName + "; deleted " + deleted + " URL entries from RWIs"); blocked++; continue; } diff --git a/htroot/yacy/transferURL.java b/htroot/yacy/transferURL.java index 6bbd0886e..3874b91d3 100644 --- a/htroot/yacy/transferURL.java +++ b/htroot/yacy/transferURL.java @@ -138,8 +138,8 @@ public final class transferURL { // check if the entry is blacklisted if ((blockBlacklist) && (plasmaSwitchboard.urlBlacklist.isListed(indexReferenceBlacklist.BLACKLIST_DHT, comp.url()))) { - int deleted = sb.wordIndex.tryRemoveURLs(lEntry.hash()); - yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + comp.url().toNormalform(false, true) + "' from peer " + otherPeerName + "; deleted " + deleted + " URL entries from RWIs"); + //int deleted = sb.wordIndex.tryRemoveURLs(lEntry.hash()); + //yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + comp.url().toNormalform(false, true) + "' from peer " + otherPeerName + "; deleted " + deleted + " URL entries from RWIs"); lEntry = null; blocked++; continue;