[jboss-cvs] JBossCache/src/org/jboss/cache ...
Brian Stansberry
brian.stansberry at jboss.com
Tue May 22 21:36:12 EDT 2007
User: bstansberry
Date: 07/05/22 21:36:12
Modified: src/org/jboss/cache LifecycleUtil.java
Log:
Don't destroy failed cache from stop
Revision Changes Path
1.2 +1 -2 JBossCache/src/org/jboss/cache/LifecycleUtil.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LifecycleUtil.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/LifecycleUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- LifecycleUtil.java 22 May 2007 20:14:26 -0000 1.1
+++ LifecycleUtil.java 23 May 2007 01:36:12 -0000 1.2
@@ -29,7 +29,7 @@
* Utility methods to help with lifecycle transitions.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class LifecycleUtil
{
@@ -116,12 +116,11 @@
case DESTROYED:
log.debug("Ignoring call to stop() as current state is " + currentState);
// fall through
- case FAILED:
- return false;
case STARTING:
case STOPPING:
log.warn("Ignoring call to stop() while cache is starting/stopping -- current state is " + currentState);
return false;
+ case FAILED:
case STARTED:
default:
return true;
More information about the jboss-cvs-commits
mailing list