From b81c7467d830d2d6fdcb0465f0268ce12be0c118 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 9 Apr 2009 23:55:47 +0000 Subject: [PATCH] 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 --- source/de/anomic/kelondro/text/IndexCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/kelondro/text/IndexCell.java b/source/de/anomic/kelondro/text/IndexCell.java index a41db0dd0..439095f8f 100644 --- a/source/de/anomic/kelondro/text/IndexCell.java +++ b/source/de/anomic/kelondro/text/IndexCell.java @@ -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();