Author: toad
Date: 2009-02-04 22:47:23 +0000 (Wed, 04 Feb 2009)
New Revision: 25571

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
Log:
Only create the error if blocks have failed outright


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-02-04 22:43:08 UTC (rev 25570)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-02-04 22:47:23 UTC (rev 25571)
@@ -631,7 +631,8 @@
                        if (finished)
                                return;
                        finished = true;
-                       toThrow = InsertException.construct(errors);
+                       if(blocksSucceeded < blocksCompleted)
+                               toThrow = InsertException.construct(errors);
                }
                if(persistent) {
                        container.store(this);

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

Reply via email to