Author: toad
Date: 2008-12-18 21:55:28 +0000 (Thu, 18 Dec 2008)
New Revision: 24534
Modified:
branches/db4o/freenet/src/freenet/node/fcp/ClientRequest.java
Log:
Don't store ClientRequest's unless persistence=forever
Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientRequest.java
2008-12-18 21:53:05 UTC (rev 24533)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientRequest.java
2008-12-18 21:55:28 UTC (rev 24534)
@@ -401,4 +401,13 @@
if(uri != null) uri.removeFrom(container);
container.delete(this);
}
+
+ public boolean objectCanNew(ObjectContainer container) {
+
+ if(persistenceType != 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