Author: toad
Date: 2009-03-26 18:04:12 +0000 (Thu, 26 Mar 2009)
New Revision: 26212

Modified:
   branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
More paranoia-logging


Modified: 
branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-03-26 18:03:51 UTC (rev 26211)
+++ branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-03-26 18:04:12 UTC (rev 26212)
@@ -489,6 +489,15 @@
                        // Data is responsibility of original caller (usually 
ClientPutDir), we don't support freeData atm
                        super.removeFrom(container, context);
                }
+               
+               public boolean objectCanNew(ObjectContainer container) {
+                       if(cancelled) {
+                               Logger.error(this, "Storing "+this+" when 
already cancelled!", 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;
+               }
 
        }
 
@@ -1671,6 +1680,19 @@
                container.delete(runGotAllMetadata);
                super.removeFrom(container, context);
        }
+       
+       public void objectOnUpdate(ObjectContainer container) {
+               if(logMINOR) Logger.minor(this, "Updating "+this+" 
activated="+container.ext().isActive(this)+" 
stored="+container.ext().isStored(this), new Exception("debug"));
+       }
 
+       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