Author: toad
Date: 2009-03-26 19:25:37 +0000 (Thu, 26 Mar 2009)
New Revision: 26217

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
Log:
Logging, don't store if finished


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-03-26 19:24:56 UTC (rev 26216)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java    
    2009-03-26 19:25:37 UTC (rev 26217)
@@ -1532,12 +1532,14 @@
                }
                for(ClientCHK chk : dataURIs) {
                        if(chk != null) {
+                               if(logMINOR) Logger.minor(this, "dataURI is 
null on "+this);
                                container.activate(chk, 5);
                                chk.removeFrom(container);
                        }
                }
                for(ClientCHK chk : checkURIs) {
                        if(chk != null) {
+                               if(logMINOR) Logger.minor(this, "checkURI is 
null on "+this);
                                container.activate(chk, 5);
                                chk.removeFrom(container);
                        }
@@ -1573,4 +1575,13 @@
                return retval;
        }
        
+       public boolean objectCanNew(ObjectContainer container) {
+               if(finished) {
+                       Logger.error(this, "Storing "+this+" when already 
finished!", new Exception("error"));
+                       return false;
+               }
+               if(logMINOR) Logger.minor(this, "Storing "+this+" 
activated="+container.ext().isActive(this)+" 
stored="+container.ext().isStored(this), new Exception("debug"));
+               return true;
+       }
+
 }

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

Reply via email to