Skip to content

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

added another shiftK2W to flushCacheSome this should fix the bug that the DHT cache is not flushed if there is no indexing

orbiter82358677a9d1
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.java
index 552fa34bd..0f4d49a63 100644
--- a/source/de/anomic/plasma/plasmaWordIndex.java
+++ b/source/de/anomic/plasma/plasmaWordIndex.java
@@ -167,6 +167,7 @@ public final class plasmaWordIndex {
}
public synchronized void flushCacheSome() {
+ ramCache.shiftK2W();
int flushCount = ramCache.wSize() / 1000;
if (flushCount > 50) flushCount = 50;
if (flushCount < 3) flushCount = 3;