Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix in unmountBLOB
orbiter568e8f174128
diff --git a/source/de/anomic/kelondro/blob/BLOBArray.java b/source/de/anomic/kelondro/blob/BLOBArray.javaindex 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<blobItem> 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;