From 07900366acf114ddb248b5c12e1e6e86284cd2a8 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 12 Jul 2006 09:45:31 +0000 Subject: [PATCH] deactivated cache-initialization for file-indexes (files in WORDS) see also: http://www.yacy-forum.de/viewtopic.php?p=23801#23801 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2289 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaWordIndexFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/plasma/plasmaWordIndexFile.java b/source/de/anomic/plasma/plasmaWordIndexFile.java index 6ed603038..a8ba85e83 100644 --- a/source/de/anomic/plasma/plasmaWordIndexFile.java +++ b/source/de/anomic/plasma/plasmaWordIndexFile.java @@ -92,13 +92,13 @@ public final class plasmaWordIndexFile { if (cacheSize > 1048576) cacheSize = 1048576; if (theLocation.exists()) try { // open existing index file - kt = new kelondroTree(theLocation, cacheSize, 1000, kelondroTree.defaultObjectCachePercent); + kt = new kelondroTree(theLocation, cacheSize, 0, kelondroTree.defaultObjectCachePercent); } catch (IOException e) { theLocation.delete(); - kt = new kelondroTree(theLocation, cacheSize, 1000, kelondroTree.defaultObjectCachePercent, indexURL.urlHashLength, indexURLEntry.encodedStringFormLength(), false); + kt = new kelondroTree(theLocation, cacheSize, 0, kelondroTree.defaultObjectCachePercent, indexURL.urlHashLength, indexURLEntry.encodedStringFormLength(), false); } else { // create new index file - kt = new kelondroTree(theLocation, cacheSize, 1000, kelondroTree.defaultObjectCachePercent, indexURL.urlHashLength, indexURLEntry.encodedStringFormLength(), false); + kt = new kelondroTree(theLocation, cacheSize, 0, kelondroTree.defaultObjectCachePercent, indexURL.urlHashLength, indexURLEntry.encodedStringFormLength(), false); } return kt; // everyone who get this should close it when finished! }