Author: toad
Date: 2009-04-01 14:13:59 +0000 (Wed, 01 Apr 2009)
New Revision: 26307

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java
Log:
Logging, detect already removed


Modified: branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java        
2009-04-01 13:56:20 UTC (rev 26306)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java        
2009-04-01 14:13:59 UTC (rev 26307)
@@ -666,7 +666,11 @@
        }
 
        public void removeFrom(ObjectContainer container, ClientContext 
context) {
-               if(logMINOR) Logger.minor(this, "removeFrom() on "+this);
+               if(logMINOR) Logger.minor(this, "removeFrom() on "+this, new 
Exception("debug"));
+               if(!container.ext().isStored(this)) {
+                       Logger.error(this, "Already removed??? on "+this, new 
Exception("error"));
+                       return;
+               }
                container.activate(blockFetchContext, 1);
                blockFetchContext.removeFrom(container);
                if(deleteFetchContext)

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

Reply via email to