Author: manik.surtani(a)jboss.com
Date: 2008-08-19 07:25:48 -0400 (Tue, 19 Aug 2008)
New Revision: 6581
Modified:
core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
Log:
Adding defunct root should be local only
Modified: core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2008-08-19
10:14:35 UTC (rev 6580)
+++ core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2008-08-19
11:25:48 UTC (rev 6581)
@@ -1074,7 +1074,11 @@
// where N is a number.
Fqn defunctRoot = buddyFqnTransformer.getDeadBackupRoot(dataOwner);
cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- Node<?, ?> defunctRootNode = cache.getRoot().addChild(defunctRoot);
+ cache.getInvocationContext().getOptionOverrides().setSkipCacheStatusCheck(true);
+ Node<?, ?> root = cache.getRoot();
+ cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+ cache.getInvocationContext().getOptionOverrides().setSkipCacheStatusCheck(true);
+ Node<?, ?> defunctRootNode = root.addChild(defunctRoot);
SortedSet<Object> childrenNames = new
TreeSet<Object>(defunctRootNode.getChildrenNames()); // will be naturally sorted.
Integer childName = 1;
Show replies by date