mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
protection against too many files in RICELL in case of massive emergency dumps caused by low memory
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5791 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
d4d87d90c4
commit
b81c7467d8
|
@ -279,7 +279,7 @@ public final class IndexCell extends AbstractBufferedIndex implements BufferedIn
|
|||
}
|
||||
|
||||
// clean-up the cache
|
||||
if (this.lastCleanup + cleanupCycle > System.currentTimeMillis()) return;
|
||||
if (this.array.size() < 50 && this.lastCleanup + cleanupCycle > System.currentTimeMillis()) return;
|
||||
//System.out.println("----cleanup check");
|
||||
this.array.shrink(this.targetFileSize, this.maxFileSize);
|
||||
this.lastCleanup = System.currentTimeMillis();
|
||||
|
|
Loading…
Reference in New Issue
Block a user