From 861aae678d3d642d0f49d617bc6cbfccf86be4f1 Mon Sep 17 00:00:00 2001 From: hermens Date: Tue, 24 Jan 2006 14:21:01 +0000 Subject: [PATCH] *) cleanup cacheAge database when cleaning up the HTCache *) Log directory deletes with level Fine git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1427 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java index b7e4c250b..4587e3139 100644 --- a/source/de/anomic/plasma/plasmaHTCache.java +++ b/source/de/anomic/plasma/plasmaHTCache.java @@ -290,7 +290,7 @@ public final class plasmaHTCache { // If the has been emptied, remove it // Loop as long as we produce empty driectoriers, but stop at HTCACHE while ((!(obj.equals(this.cachePath))) && (obj.isDirectory()) && (obj.list().length == 0)) { - if (obj.delete()) this.log.logInfo("DELETED EMPTY DIRECTORY : " + obj.toString()); + if (obj.delete()) this.log.logFine("DELETED EMPTY DIRECTORY : " + obj.toString()); obj = obj.getParentFile(); } return true; @@ -319,6 +319,7 @@ public final class plasmaHTCache { } } } + iter.remove(); } }