Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Fix for growing responseHeader[12].db when using proxyCacheLayout = hash
hermensd177ceb3b38f
diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.javaindex 8e6d63bbf..c7b7cc083 100644--- a/source/de/anomic/plasma/plasmaHTCache.java+++ b/source/de/anomic/plasma/plasmaHTCache.java@@ -458,10 +458,11 @@ public final class plasmaHTCache {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);