Author: toad
Date: 2008-12-17 23:33:36 +0000 (Wed, 17 Dec 2008)
New Revision: 24494
Modified:
branches/db4o/freenet/src/freenet/keys/ClientCHK.java
Log:
Make the cached NodeCHK transient. Do not remove it from the database.
Modified: branches/db4o/freenet/src/freenet/keys/ClientCHK.java
===================================================================
--- branches/db4o/freenet/src/freenet/keys/ClientCHK.java 2008-12-17
23:22:45 UTC (rev 24493)
+++ branches/db4o/freenet/src/freenet/keys/ClientCHK.java 2008-12-17
23:33:36 UTC (rev 24494)
@@ -20,7 +20,7 @@
public class ClientCHK extends ClientKey {
/** Lazily constructed: the NodeCHK */
- NodeCHK nodeKey;
+ transient NodeCHK nodeKey;
/** Routing key */
final byte[] routingKey;
/** Decryption key */
@@ -189,7 +189,6 @@
}
public void removeFrom(ObjectContainer container) {
- if(nodeKey != null) nodeKey.removeFrom(container);
container.delete(this);
}
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs