Author: nextgens
Date: 2008-08-25 21:33:46 +0000 (Mon, 25 Aug 2008)
New Revision: 22151

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
Free and then account

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
21:30:02 UTC (rev 22150)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
21:33:46 UTC (rev 22151)
@@ -99,10 +99,10 @@
                        if(logMINOR)
                                Logger.minor(this, "We have migrated 
"+toMigrate.hashCode());

+                       // We can free it on-thread as it's a rambucket
+                       toMigrate.free();
                        // Might have changed already so we can't rely on 
currentSize!
                        _hasFreed(toMigrate.size());
-                       // We can free it on-thread as it's a rambucket
-                       toMigrate.free();
                }

                public final boolean isRAMBucket() {


Reply via email to