Author: manik.surtani(a)jboss.com
Date: 2008-08-05 08:45:08 -0400 (Tue, 05 Aug 2008)
New Revision: 6513
Modified:
core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
Log:
Added proper exception propagation during buddy remote comms
use Cache.getRoot() instead of DataContainer.getRoot()
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-05
12:43:23 UTC (rev 6512)
+++ core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2008-08-05
12:45:08 UTC (rev 6513)
@@ -1074,7 +1074,7 @@
// where N is a number.
Fqn defunctRoot = buddyFqnTransformer.getDeadBackupRoot(dataOwner);
cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- Node<?, ?> defunctRootNode = dataContainer.getRoot().addChild(defunctRoot);
+ Node<?, ?> defunctRootNode = cache.getRoot().addChild(defunctRoot);
SortedSet<Object> childrenNames = new
TreeSet<Object>(defunctRootNode.getChildrenNames()); // will be naturally sorted.
Integer childName = 1;