[jbosscache-commits] JBoss Cache SVN: r6966 - core/branches/2.2.X/src/main/java/org/jboss/cache.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Oct 15 17:56:51 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-10-15 17:56:51 -0400 (Wed, 15 Oct 2008)
New Revision: 6966

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

Modified: core/branches/2.2.X/src/main/java/org/jboss/cache/CacheStatus.java
===================================================================
--- core/branches/2.2.X/src/main/java/org/jboss/cache/CacheStatus.java	2008-10-15 20:48:28 UTC (rev 6965)
+++ core/branches/2.2.X/src/main/java/org/jboss/cache/CacheStatus.java	2008-10-15 21:56:51 UTC (rev 6966)
@@ -162,13 +162,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;
@@ -185,14 +185,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