Author: toad
Date: 2009-03-25 14:52:12 +0000 (Wed, 25 Mar 2009)
New Revision: 26173

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
Collisions, internal errors: don't fail permanently and then try to retry


Modified: 
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2009-03-25 12:21:47 UTC (rev 26172)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java     
2009-03-25 14:52:12 UTC (rev 26173)
@@ -214,10 +214,10 @@
                switch(e.code) {
                case LowLevelPutException.COLLISION:
                        fail(new InsertException(InsertException.COLLISION), 
container, context);
-                       break;
+                       return;
                case LowLevelPutException.INTERNAL_ERROR:
                        fail(new 
InsertException(InsertException.INTERNAL_ERROR), container, context);
-                       break;
+                       return;
                case LowLevelPutException.REJECTED_OVERLOAD:
                        errors.inc(InsertException.REJECTED_OVERLOAD);
                        break;

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

Reply via email to