Author: manik.surtani(a)jboss.com
Date: 2009-08-06 06:10:12 -0400 (Thu, 06 Aug 2009)
New Revision: 8161
Modified:
core/trunk/src/main/java/org/jboss/cache/invocation/CacheInvocationDelegate.java
Log:
Proper use of local origin flag
Modified:
core/trunk/src/main/java/org/jboss/cache/invocation/CacheInvocationDelegate.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/invocation/CacheInvocationDelegate.java 2009-08-06
10:09:35 UTC (rev 8160)
+++
core/trunk/src/main/java/org/jboss/cache/invocation/CacheInvocationDelegate.java 2009-08-06
10:10:12 UTC (rev 8161)
@@ -690,7 +690,7 @@
protected void cacheStatusCheck(InvocationContext ctx)
{
assertIsConstructed();
- if (!ctx.getOptionOverrides().isSkipCacheStatusCheck() &&
!componentRegistry.invocationsAllowed(true))
+ if (!ctx.getOptionOverrides().isSkipCacheStatusCheck() &&
!componentRegistry.invocationsAllowed(ctx.isOriginLocal()))
{
throw new IllegalStateException("Cache not in STARTED state!");
}
Show replies by date