Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

a little bit better memory protection

orbiter3499a364ef7f
diff --git a/source/de/anomic/kelondro/kelondroCollectionIndex.java b/source/de/anomic/kelondro/kelondroCollectionIndex.java
index fe9f53616..8848de732 100644
--- a/source/de/anomic/kelondro/kelondroCollectionIndex.java
+++ b/source/de/anomic/kelondro/kelondroCollectionIndex.java
@@ -284,7 +284,7 @@ public class kelondroCollectionIndex {
// this is computed by the size of the biggest used collection
// this must be multiplied with the payload size
// and doubled for necessary memory transformation during sort operation
- return 2 * arrayCapacity(arrays.size() - 1) * this.payloadrow.objectsize;
+ return (int) (2 * arrayCapacity(arrays.size() - 1) * this.payloadrow.objectsize * kelondroRowSet.growfactor);
}
private void array_remove(