fix for clear method: now deletes files

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5752 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent eb65990f85
commit fa07234d4e

@ -300,7 +300,11 @@ public class BLOBArray implements BLOB {
* @throws IOException * @throws IOException
*/ */
public synchronized void clear() throws IOException { public synchronized void clear() throws IOException {
for (blobItem bi: blobs) bi.blob.clear(); for (blobItem bi: blobs) {
bi.blob.clear();
bi.blob.close(false);
bi.location.delete();
}
blobs.clear(); blobs.clear();
} }

Loading…
Cancel
Save