Author: toad
Date: 2008-12-18 21:49:59 +0000 (Thu, 18 Dec 2008)
New Revision: 24530

Modified:
   branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java
Log:
Don't store FCPClient's unless they have persistence=forever


Modified: branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java   2008-12-18 
21:48:37 UTC (rev 24529)
+++ branches/db4o/freenet/src/freenet/node/fcp/FCPClient.java   2008-12-18 
21:49:59 UTC (rev 24530)
@@ -439,4 +439,14 @@
                ((Db4oList)completedUnackedRequests).activationDepth(1);
                ((Db4oMap)clientRequestsByIdentifier).activationDepth(1);
        }
+
+       public boolean objectCanNew(ObjectContainer container) {
+               if(persistenceType != ClientRequest.PERSIST_FOREVER) {
+                       Logger.error(this, "Not storing non-persistent request 
in database", new Exception("error"));
+                       return false;
+               }
+               return true;
+       }
+
+
 }

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

Reply via email to