mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
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:
parent
cb23fc3d83
commit
82358677a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user