Author: hermens Date: 2008-01-25 22:56:25 +0100 (Fri, 25 Jan 2008) New Revision: 4404
Modified: trunk/source/de/anomic/plasma/plasmaHTCache.java Log: Fix for growing responseHeader[12].db when using proxyCacheLayout = hash Modified: trunk/source/de/anomic/plasma/plasmaHTCache.java =================================================================== --- trunk/source/de/anomic/plasma/plasmaHTCache.java 2008-01-25 19:23:43 UTC (rev 4403) +++ trunk/source/de/anomic/plasma/plasmaHTCache.java 2008-01-25 21:56:25 UTC (rev 4404) @@ -458,10 +458,11 @@ if (file != null) { if (filesInUse.contains(file)) continue; log.logFinest("Trying to delete [" + key + "] = old file: " + file.toString()); + // This needs to be called *before* the file is deleted + String urlHash = getHash(file); if (deleteFileandDirs(file, "OLD")) { try { // As the file is gone, the entry in responseHeader.db is not needed anymore - String urlHash = getHash(file); if (urlHash != null) { log.logFinest("Trying to remove responseHeader for URLhash: " + urlHash); responseHeaderDB.remove(urlHash); _______________________________________________ YaCy-svn mailing list YaCy-svn@lists.berlios.de https://lists.berlios.de/mailman/listinfo/yacy-svn