added another shiftK2W to flushCacheSome

this should fix the bug that the DHT cache is not flushed if there is no indexing

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1935 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2006-03-19 21:33:31 +00:00
parent cb23fc3d83
commit 82358677a9

View File

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