Author: toad
Date: 2009-01-31 00:42:06 +0000 (Sat, 31 Jan 2009)
New Revision: 25426

Modified:
   branches/db4o/freenet/src/freenet/support/io/BucketTools.java
Log:
Actually split FileBucket's efficiently!!


Modified: branches/db4o/freenet/src/freenet/support/io/BucketTools.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/BucketTools.java       
2009-01-31 00:20:04 UTC (rev 25425)
+++ branches/db4o/freenet/src/freenet/support/io/BucketTools.java       
2009-01-31 00:42:06 UTC (rev 25426)
@@ -357,6 +357,7 @@
                        Bucket[] buckets = 
((FileBucket)origData).split(splitSize);
                        for(Bucket bucket : buckets)
                                bucket.storeTo(container);
+                       return buckets;
                }
                if(origData instanceof BucketChainBucket) {
                        if(persistent) throw new 
IllegalArgumentException("Splitting a BucketChainBucket but persistent = 
true!");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to