Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
smaller file size for array stacks to support smaller deletion sizes
orbiter4c50d3428e0e
diff --git a/source/net/yacy/kelondro/blob/ArrayStack.java b/source/net/yacy/kelondro/blob/ArrayStack.javaindex 50f84b9f9..8efea5ec5 100755--- a/source/net/yacy/kelondro/blob/ArrayStack.java+++ b/source/net/yacy/kelondro/blob/ArrayStack.java@@ -79,6 +79,7 @@ public class ArrayStack implements BLOB {* time-out. Deletions are not made automatically, they must be triggered using this method.*/+ public static final long maxFileSize = Integer.MAX_VALUE;public static final long oneMonth = 1000L * 60L * 60L * 24L * 365L / 12L;protected int keylength;@@ -109,7 +110,7 @@ public class ArrayStack implements BLOB {this.buffersize = buffersize;this.heapLocation = heapLocation;this.fileAgeLimit = oneMonth;- this.fileSizeLimit = (long) Integer.MAX_VALUE;+ this.fileSizeLimit = maxFileSize;this.repositoryAgeMax = Long.MAX_VALUE;this.repositorySizeMax = Long.MAX_VALUE;this.trimall = trimall;@@ -378,7 +379,7 @@ public class ArrayStack implements BLOB {public void setMaxSize(long maxSize) {this.repositorySizeMax = maxSize;- this.fileSizeLimit = Math.min((long) Integer.MAX_VALUE, maxSize / 10L);+ this.fileSizeLimit = Math.min(maxFileSize, maxSize / 100L);executeLimits();}