[jbosscache-commits] JBoss Cache SVN: r6155 - core/trunk/src/main/java/org/jboss/cache/buddyreplication.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Jul 3 08:00:22 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-07-03 08:00:22 -0400 (Thu, 03 Jul 2008)
New Revision: 6155
Modified:
core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
Log:
get root directly
Modified: core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2008-07-02 17:34:40 UTC (rev 6154)
+++ core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2008-07-03 12:00:22 UTC (rev 6155)
@@ -293,7 +293,12 @@
broadcastBuddyPoolMembership();
- if (!cache.exists(BUDDY_BACKUP_SUBTREE_FQN)) cache.getRoot().addChildDirect(BUDDY_BACKUP_SUBTREE_FQN);
+ if (!cache.exists(BUDDY_BACKUP_SUBTREE_FQN))
+ {
+ // need to get the root DIRECTLY. cache.getRoot() will pass a call up the interceptor chain and we will
+ // have a problem with the cache not being started.
+ dataContainer.getRoot().addChildDirect(BUDDY_BACKUP_SUBTREE_FQN);
+ }
// allow waiting threads to process.
initialisationLatch.countDown();
More information about the jbosscache-commits
mailing list