Author: toad
Date: 2008-10-23 17:43:30 +0000 (Thu, 23 Oct 2008)
New Revision: 23052

Modified:
   
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
Increase the maximum size by which the tempfile blob will be extended to 16K 
buckets = 2GB.


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2008-10-23 17:42:23 UTC (rev 23051)
+++ 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2008-10-23 17:43:30 UTC (rev 23052)
@@ -158,7 +158,7 @@
                        // Lets extend the file.
                        // FIXME if physical security is LOW, just set the 
length, possibly
                        // padding will nonrandom nulls on unix.
-                       long addBlocks = Math.min(1024, (blocks / 20) + 32);
+                       long addBlocks = Math.min(16384, (blocks / 10) + 32);
                        long extendBy = addBlocks * blockSize;
                        long written = 0;
                        byte[] buf = new byte[4096];


Reply via email to