added a deleteOnExit for blob file deletion in case that a deletion is not successful.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5713 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 66f78d67e0
commit 44874cb550

@ -208,7 +208,7 @@ public class BLOBArray implements BLOB {
// too old
blobItem 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 large
blobItem oldestBLOB = blobs.remove(0);
oldestBLOB.blob.close();
oldestBLOB.location.delete();
if (!oldestBLOB.location.delete()) oldestBLOB.location.deleteOnExit();
}
}

Loading…
Cancel
Save