fixed bug with cache flush

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1717 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent 149409ba5c
commit 134253a603

@ -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());
}

@ -60,7 +60,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
// environment constants
private static final String indexArrayFileName = "indexDump1.array";
private static final int ramCacheLimit = 60;
public static final int ramCacheLimit = 50;
// class variables
private final File databaseRoot;

Loading…
Cancel
Save