Author: toad
Date: 2008-06-18 20:08:32 +0000 (Wed, 18 Jun 2008)
New Revision: 20460

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Hopefully fix small inserts

Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java      
2008-06-18 19:57:28 UTC (rev 20459)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java      
2008-06-18 20:08:32 UTC (rev 20460)
@@ -275,6 +275,9 @@
                boolean tryCompress = (origSize > blockSize) && 
(!ctx.dontCompress) && (!dontCompress);
                if(tryCompress) {
                        InsertCompressor.start(container, context, this, 
origData, oneBlockCompressedSize, ctx.bf, parent.persistent());
+               } else {
+                       CompressionOutput output = new CompressionOutput(data, 
null);
+                       onCompressed(output, container, context);
                }
        }



Reply via email to