Author: toad
Date: 2008-06-13 12:16:13 +0000 (Fri, 13 Jun 2008)
New Revision: 20285
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
keyNum MUST be null. We handled the failure cases when selecting the request.
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-06-13 12:12:04 UTC (rev 20284)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-06-13 12:16:13 UTC (rev 20285)
@@ -300,16 +300,7 @@
if(b != null)
core.realPut(b, ctx.cacheLocalRequests);
else {
- synchronized(this) {
- if(finished) {
- Logger.error(this, "Trying to
run send "+this+" when already finished", new Exception("error"));
- return false;
- }
- }
- if(parent.isCancelled())
- fail(new
InsertException(InsertException.CANCELLED), null);
- else
- fail(new
InsertException(InsertException.BUCKET_ERROR, "Empty block", null), null);
+ Logger.error(this, "Asked to send empty block
on "+this, new Exception("error"));
return false;
}
} catch (LowLevelPutException e) {