Author: toad
Date: 2009-03-25 19:12:50 +0000 (Wed, 25 Mar 2009)
New Revision: 26186

Modified:
   branches/db4o/freenet/src/freenet/node/fcp/ClientPutBase.java
Log:
Activate and clone URI when sending PutSuccessful


Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientPutBase.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientPutBase.java       
2009-03-25 19:12:17 UTC (rev 26185)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientPutBase.java       
2009-03-25 19:12:50 UTC (rev 26186)
@@ -289,6 +289,11 @@
 
                FCPMessage msg;
                synchronized (this) {
+                       FreenetURI uri = generatedURI;
+                       if(persistenceType == PERSIST_FOREVER) {
+                               container.activate(uri, 5);
+                               uri = uri.clone();
+                       }
                        if(succeeded) {
                                msg = new PutSuccessfulMessage(identifier, 
global, generatedURI, startupTime, completionTime);
                        } else {

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

Reply via email to