[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
manik at jboss.org
Fri Jul 20 10:47:02 EDT 2007
User: msurtani
Date: 07/07/20 10:47:02
Modified: src/org/jboss/cache CacheImpl.java
Log:
Ignore cache status check for BR group org methods
Revision Changes Path
1.105 +2 -1 JBossCache/src/org/jboss/cache/CacheImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheImpl.java,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -b -r1.104 -r1.105
--- CacheImpl.java 17 Jul 2007 17:39:37 -0000 1.104
+++ CacheImpl.java 20 Jul 2007 14:47:01 -0000 1.105
@@ -3894,7 +3894,8 @@
// don't create a new one; get it from ThreadLocal just this once, in case a user has added any overrides.
InvocationContext ctx = getInvocationContext();
- if (!cacheStatus.allowInvocations() && !ctx.getOptionOverrides().isSkipCacheStatusCheck())
+ // BR methods should NOT block on the cache being started, since the cache depends on these completing to start.
+ if (!MethodDeclarations.isBuddyGroupOrganisationMethod(m.getMethodId()) && !cacheStatus.allowInvocations() && !ctx.getOptionOverrides().isSkipCacheStatusCheck())
throw new IllegalStateException("Cache not in STARTED state!");
MethodCall oldCall = null;
More information about the jboss-cvs-commits
mailing list