Skip to content

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

deactivated unnecessary and very CPU-intensive deletion check for blacklisted URLs in index receive

orbiter14384e7a45b8
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;