[hornetq-commits] JBoss hornetq SVN: r9409 - branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jul 19 08:09:09 EDT 2010


Author: jmesnil
Date: 2010-07-19 08:09:09 -0400 (Mon, 19 Jul 2010)
New Revision: 9409

Modified:
   branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
Log:
HA refactoring

* do not announce the node if there is no cluster connections

Modified: branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
===================================================================
--- branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java	2010-07-19 09:13:55 UTC (rev 9408)
+++ branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java	2010-07-19 12:09:09 UTC (rev 9409)
@@ -152,8 +152,11 @@
 
       // Now announce presence
 
-      announceNode();
-
+      if (clusterConnections.size() > 0)
+      {
+         announceNode();
+      }
+      
       started = true;
    }
 
@@ -264,7 +267,10 @@
       {
          backup = false;
 
-         announceNode();
+         if (clusterConnections.size() > 0)
+         {
+            announceNode();
+         }
       }
    }
 



More information about the hornetq-commits mailing list