cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r501867 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java
Date Wed, 31 Jan 2007 15:55:34 GMT
Author: vgritsenko
Date: Wed Jan 31 07:55:33 2007
New Revision: 501867

URL: http://svn.apache.org/viewvc?view=rev&rev=501867
Log:
fix logic

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java?view=diff&rev=501867&r1=501866&r2=501867
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/store/impl/StoreJanitorImpl.java
Wed Jan 31 07:55:33 2007
@@ -138,12 +138,9 @@
             throw new ParameterException("StoreJanitorImpl percent_to_free, has to be between
1 and 100");
         }
 
-        if (!this.freeingAlgorithm.equals(ALG_ROUND_ROBIN) || !this.freeingAlgorithm.equals(ALG_ALL_STORES))
{
-            if (getLogger().isWarnEnabled()) {
-                getLogger().warn("Freeing algorithm is not a valid value: " + this.freeingAlgorithm
+
-                                 ".  Defaulting to round-robin.");
-            }
-            this.freeingAlgorithm = ALG_ROUND_ROBIN;
+        if (!(this.freeingAlgorithm.equals(ALG_ROUND_ROBIN) || this.freeingAlgorithm.equals(ALG_ALL_STORES)))
{
+            throw new Exception("StoreJanitorImpl freeingAlgorithm, has to be 'round-robin'
or 'all-stores'. '" 
+                    + this.freeingAlgorithm + "' is not supported.");
         }
 
         this.fraction = percent / 100.0D;



Mime
View raw message