Author: toad
Date: 2009-02-16 14:26:05 +0000 (Mon, 16 Feb 2009)
New Revision: 25659

Modified:
   
branches/db4o/freenet/src/freenet/client/async/PersistentSendableRequestSet.java
Log:
Store arraylist to depth 1 here as elsewhere, and for the same reason: if you 
just store(list), db4o will update everything to depth 3


Modified: 
branches/db4o/freenet/src/freenet/client/async/PersistentSendableRequestSet.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/PersistentSendableRequestSet.java
    2009-02-16 13:47:32 UTC (rev 25658)
+++ 
branches/db4o/freenet/src/freenet/client/async/PersistentSendableRequestSet.java
    2009-02-16 14:26:05 UTC (rev 25659)
@@ -29,7 +29,9 @@
                int idx = find(req);
                if(idx == -1) {
                        list.add(req);
-                       container.store(list);
+                       container.store(req);
+                       /** Store to depth 1, otherwise it will update to depth 
3 */
+                       container.ext().store(list, 1);
                        return true;
                } else return false;
        }

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

Reply via email to