Author: toad
Date: 2009-01-27 17:51:55 +0000 (Tue, 27 Jan 2009)
New Revision: 25325

Modified:
   branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
Log:
DOH!


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java   
    2009-01-27 17:50:35 UTC (rev 25324)
+++ 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java   
    2009-01-27 17:51:55 UTC (rev 25325)
@@ -52,8 +52,6 @@
        
        private final PersistentBlobTempBucketFactory blobFactory;
        
-       private transient ObjectContainer container;
-       
        static final int BLOB_SIZE = CHKBlock.DATA_LENGTH;
        
        /** Don't store the bucketsToFree unless it's been modified since we 
last stored it. */
@@ -216,10 +214,10 @@
                        if(!modifiedBucketsToFree) return;
                        modifiedBucketsToFree = false;
                        for(DelayedFreeBucket bucket : bucketsToFree) {
-                               container.activate(bucket, 1);
-                               bucket.storeTo(container);
+                               db.activate(bucket, 1);
+                               bucket.storeTo(db);
                        }
-                       container.store(bucketsToFree);
+                       db.store(bucketsToFree);
                }
        }
        
@@ -240,7 +238,7 @@
                        x++;
                }
                if(x > 1024) {
-                       container.store(bucketsToFree);
+                       db.store(bucketsToFree);
                        // Lots of buckets freed, commit now to reduce memory 
footprint.
                        db.commit();
                }

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

Reply via email to