[jbosscache-commits] JBoss Cache SVN: r6967 - core/trunk/src/main/java/org/jboss/cache.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Oct 15 18:07:39 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-10-15 18:07:39 -0400 (Wed, 15 Oct 2008)
New Revision: 6967

Modified:
   core/trunk/src/main/java/org/jboss/cache/CacheStatus.java
Log:
[JBCACHE-1429] Don't WARN on reentrant xxxAllowed() checks

Modified: core/trunk/src/main/java/org/jboss/cache/CacheStatus.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/CacheStatus.java	2008-10-15 21:56:51 UTC (rev 6966)
+++ core/trunk/src/main/java/org/jboss/cache/CacheStatus.java	2008-10-15 22:07:39 UTC (rev 6967)
@@ -149,13 +149,13 @@
       {
          case INSTANTIATED:
          case CREATED:
+         case STOPPING:
          case STOPPED:
          case DESTROYED:
             log.debug("Ignoring call to stop() as current state is " + this);
             return false;
          case CREATING:
          case STARTING:
-         case STOPPING:
          case DESTROYING:
             log.warn("Ignoring call to stop() as current state is " + this);
             return false;
@@ -172,14 +172,14 @@
       switch (this)
       {
          case INSTANTIATED:
+         case DESTROYING:
          case DESTROYED:
             log.debug("Ignoring call to destroy() as current state is " + this);
             return false;
          case CREATING:
          case STARTING:
          case STOPPING:
-         case DESTROYING:
-            log.warn("Ignoring call to destroy() as current state iswhile cache is " + this);
+            log.warn("Ignoring call to destroy() as current state is " + this);
             return false;
          case STARTED:
             // stop first




More information about the jbosscache-commits mailing list