Author: toad
Date: 2008-10-22 15:13:05 +0000 (Wed, 22 Oct 2008)
New Revision: 23037

Modified:
   
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
Forgot to remove blobs from not committed when they are committed!


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2008-10-22 15:12:29 UTC (rev 23036)
+++ 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
   2008-10-22 15:13:05 UTC (rev 23037)
@@ -277,6 +277,9 @@
                        throw new IllegalStateException("Slot "+index+" already 
occupied!");
                }
                // Now the normal bit
+               synchronized(this) {
+                       notCommittedBlobs.remove(index);
+               }
                query = container.query();
                query.constrain(PersistentBlobFreeSlotTag.class);
                
query.descend("index").constrain(index).and(query.descend("factory").constrain(PersistentBlobTempBucketFactory.this));


Reply via email to