Author: bstansberry(a)jboss.com
Date: 2008-02-27 10:41:00 -0500 (Wed, 27 Feb 2008)
New Revision: 5374
Modified:
core/trunk/src/main/java/org/jboss/cache/RegionManager.java
Log:
Avoid RpcManagerImpl WARN when we activate a region in LOCAL mode
Modified: core/trunk/src/main/java/org/jboss/cache/RegionManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/RegionManager.java 2008-02-27 15:39:24 UTC
(rev 5373)
+++ core/trunk/src/main/java/org/jboss/cache/RegionManager.java 2008-02-27 15:41:00 UTC
(rev 5374)
@@ -422,7 +422,10 @@
}
List<Address> members = cache.getMembers();
- rpcManager.fetchPartialState(members, subtreeRoot.getFqn());
+
+ // Don't bother trying to fetch state if we are in LOCAL mode
+ if (members != null && !members.isEmpty())
+ rpcManager.fetchPartialState(members, subtreeRoot.getFqn());
}
else if (!BuddyManager.isBackupFqn(fqn))
{
Show replies by date