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:
orbiter 2009-04-09 23:55:47 +00:00
parent d4d87d90c4
commit b81c7467d8

View File

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