Author: toad
Date: 2009-01-30 15:08:15 +0000 (Fri, 30 Jan 2009)
New Revision: 25396
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
Add fewer blocks at a time
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
---
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2009-01-30 14:47:35 UTC (rev 25395)
+++
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2009-01-30 15:08:15 UTC (rev 25396)
@@ -192,7 +192,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(16384, (blocks / 10) + 32);
+ long addBlocks = Math.min(8192, (blocks / 10) + 32);
long extendBy = addBlocks * blockSize;
long written = 0;
byte[] buf = new byte[4096];
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs