jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asm...@apache.org
Subject svn commit: r432937 - /jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
Date Sun, 20 Aug 2006 05:06:34 GMT
Author: asmuts
Date: Sat Aug 19 22:06:33 2006
New Revision: 432937

URL: http://svn.apache.org/viewvc?rev=432937&view=rev
Log:
fixed JCS-4
http://issues.apache.org/jira/browse/JCS-4

Cache checks to see if the data free is greater than 0 before optimizing on shutdown.

Modified:
    jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java

Modified: jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
URL: http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java?rev=432937&r1=432936&r2=432937&view=diff
==============================================================================
--- jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
(original)
+++ jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCache.java
Sat Aug 19 22:06:33 2006
@@ -878,7 +878,7 @@
                 log.error( logCacheName + "Unable to join current optimization thread.",
e );
             }
         }
-        else if ( isShutdownOptimizationEnabled )
+        else if ( isShutdownOptimizationEnabled && this.getBytesFree() > 0 )
         {
             optimizeFile();
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


Mime
View raw message