Author: toad
Date: 2008-08-08 11:18:40 +0000 (Fri, 08 Aug 2008)
New Revision: 21665
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Don't create BucketChainBucket's inside BucketChainBucket's! InsertCompressor
uses BCBF, so SFI doesn't need to.
Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
2008-08-08 11:06:21 UTC (rev 21664)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
2008-08-08 11:18:40 UTC (rev 21665)
@@ -308,7 +308,7 @@
boolean tryCompress = (origSize > blockSize) &&
(!ctx.dontCompress) && (!dontCompress);
if(tryCompress) {
- InsertCompressor.start(container, context, this,
origData, oneBlockCompressedSize, new
BucketChainBucketFactory(context.getBucketFactory(persistent),
CHKBlock.DATA_LENGTH), persistent);
+ InsertCompressor.start(container, context, this,
origData, oneBlockCompressedSize, context.getBucketFactory(persistent),
persistent);
} else {
CompressionOutput output = new CompressionOutput(data,
null);
onCompressed(output, container, context);