Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added a deleteOnExit for blob file deletion in case that a deletion is not successful.
orbiter44874cb550dd
diff --git a/source/de/anomic/kelondro/blob/BLOBArray.java b/source/de/anomic/kelondro/blob/BLOBArray.javaindex f57fa3689..c13ada8a3 100755--- a/source/de/anomic/kelondro/blob/BLOBArray.java+++ b/source/de/anomic/kelondro/blob/BLOBArray.java@@ -208,7 +208,7 @@ public class BLOBArray implements BLOB {// too oldblobItem oldestBLOB = blobs.remove(0);oldestBLOB.blob.close();- oldestBLOB.location.delete();+ if (!oldestBLOB.location.delete()) oldestBLOB.location.deleteOnExit();}// size limit@@ -216,7 +216,7 @@ public class BLOBArray implements BLOB {// too largeblobItem oldestBLOB = blobs.remove(0);oldestBLOB.blob.close();- oldestBLOB.location.delete();+ if (!oldestBLOB.location.delete()) oldestBLOB.location.deleteOnExit();}}