Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for long waiting time during deletion of processed news see http://forum.yacy.de/viewtopic.php?f=6&t=6
orbiter87afdfc2a789
diff --git a/htroot/News.java b/htroot/News.javaindex d9486e300..dd118fdae 100644--- a/htroot/News.java+++ b/htroot/News.java@@ -95,14 +95,14 @@ public class News {}yacyNewsRecord record;try {-// if ((tableID == yacyNewsPool.PROCESSED_DB) || (tableID == yacyNewsPool.PUBLISHED_DB)) {-// yacyCore.newsPool.clear(tableID);-// } else {+ if ((tableID == yacyNewsPool.PROCESSED_DB) || (tableID == yacyNewsPool.PUBLISHED_DB)) {+ yacyCore.newsPool.clear(tableID);+ } else {while (yacyCore.newsPool.size(tableID) > 0) {record = yacyCore.newsPool.get(tableID, 0);yacyCore.newsPool.moveOff(tableID, record.id());}-// }+ }} catch (IOException e) {e.printStackTrace();}diff --git a/source/de/anomic/yacy/yacyNewsPool.java b/source/de/anomic/yacy/yacyNewsPool.javaindex 13b49c933..bbbcc6f76 100644--- a/source/de/anomic/yacy/yacyNewsPool.java+++ b/source/de/anomic/yacy/yacyNewsPool.java@@ -460,8 +460,7 @@ public class yacyNewsPool {}public void clear(int dbKey) {- // this is called if a queue element shall be moved to another queue or off the queue- // it depends on the dbKey how the record is handled+ // clear a tableswitch (dbKey) {case INCOMING_DB: incomingNews.clear(); break;case PROCESSED_DB: processedNews.clear(); break;