From 568e8f174128ff37a969991cc6d859e9b0c96de3 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 31 Mar 2009 17:03:13 +0000 Subject: [PATCH] fix in unmountBLOB git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5762 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/blob/BLOBArray.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/kelondro/blob/BLOBArray.java b/source/de/anomic/kelondro/blob/BLOBArray.java index 61b8c2a9b..c10c51758 100755 --- a/source/de/anomic/kelondro/blob/BLOBArray.java +++ b/source/de/anomic/kelondro/blob/BLOBArray.java @@ -149,12 +149,11 @@ public class BLOBArray implements BLOB { } public synchronized void unmountBLOB(File location, boolean writeIDX) { - Iterator i = this.blobs.iterator(); blobItem b; - while (i.hasNext()) { - b = i.next(); + for (int i = 0; i < this.blobs.size(); i++) { + b = this.blobs.get(i); if (b.location.equals(location)) { - i.remove(); + this.blobs.remove(i); b.blob.close(writeIDX); b.blob = null; b.location = null;