Author: toad
Date: 2008-12-18 22:00:21 +0000 (Thu, 18 Dec 2008)
New Revision: 24535
Modified:
branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
Log:
add an assertion
Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java 2008-12-18
21:55:28 UTC (rev 24534)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java 2008-12-18
22:00:21 UTC (rev 24535)
@@ -293,6 +293,8 @@
* @throws IdentifierCollisionException If the identifier is already in
use.
*/
void register(ObjectContainer container, boolean lazyResume, boolean
noTags) throws IdentifierCollisionException {
+ if(client != null)
+ assert(this.persistenceType == client.persistenceType);
if(persistenceType != PERSIST_CONNECTION)
try {
client.register(this, lazyResume, container);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs