From ab1ed053f5d4313312777f9b2063c337726c02e0 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 2 Jul 2006 00:57:20 +0000 Subject: [PATCH] another small correction git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2267 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/kelondroRecords.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/kelondro/kelondroRecords.java b/source/de/anomic/kelondro/kelondroRecords.java index 41f456f62..bfadbe0d3 100644 --- a/source/de/anomic/kelondro/kelondroRecords.java +++ b/source/de/anomic/kelondro/kelondroRecords.java @@ -1062,7 +1062,7 @@ public class kelondroRecords { while ((markedDeleted.contains(pos)) && (pos.index < USAGE.allCount())) pos.index++; // initialize bulk - bulksize = 65536 / recordsize; + bulksize = Math.min(65536 / recordsize, USAGE.allCount()); bulkstart = -bulksize; bulk = new byte[bulksize * recordsize]; }