Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed bug with cache flush
orbiter134253a603e2
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex 76d9fa60e..ed315e630 100644--- a/source/de/anomic/plasma/plasmaWordIndex.java+++ b/source/de/anomic/plasma/plasmaWordIndex.java@@ -118,7 +118,7 @@ public final class plasmaWordIndex {int added = ramCache.addEntries(entries, updateTime, highPriority);// force flush- while (ramCache.maxURLinWordCache() > 50) {+ while (ramCache.maxURLinWordCache() > plasmaWordIndexCache.ramCacheLimit) {try { Thread.sleep(10); } catch (InterruptedException e) { }flushCacheToBackend(ramCache.bestFlushWordHash());}diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.javaindex 36a09a475..373eed6d4 100644--- a/source/de/anomic/plasma/plasmaWordIndexCache.java+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java@@ -60,7 +60,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {// environment constantsprivate static final String indexArrayFileName = "indexDump1.array";- private static final int ramCacheLimit = 60;+ public static final int ramCacheLimit = 50;// class variablesprivate final File databaseRoot;