Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added missing forced-flush for index cache see http://www.yacy-forum.de/viewtopic.php?p=15732#15732
orbitera56fefe0d348
diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.javaindex d8bfe6598..eaf57a520 100644--- a/source/de/anomic/plasma/plasmaWordIndexCache.java+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java@@ -476,6 +476,11 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {// force flush (sometimes)if (System.currentTimeMillis() % 7 == 4) flushFromMem();+ if (highPriority) {+ while (cache.size() > maxWordsHigh) flushFromMem();+ } else {+ while (cache.size() > maxWordsLow) flushFromMem();+ }}return added;}