Author: nextgens
Date: 2008-08-25 20:29:39 +0000 (Mon, 25 Aug 2008)
New Revision: 22146

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
TempBuckets: Cheap optimization: return the size we account

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
20:20:00 UTC (rev 22145)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25 
20:29:39 UTC (rev 22146)
@@ -286,7 +286,7 @@

                public long size() {
                        synchronized(currentBucket) {
-                               return currentBucket.size();
+                               return currentSize;
                        }
                }



Reply via email to