[hornetq-commits] JBoss hornetq SVN: r8296 - trunk/src/main/org/hornetq/core/server/cluster/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Nov 17 05:54:10 EST 2009


Author: ataylor
Date: 2009-11-17 05:54:10 -0500 (Tue, 17 Nov 2009)
New Revision: 8296

Modified:
   trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
Log:
only add the remote binding to the bindings map if it doesnt already exist

Modified: trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java	2009-11-17 00:16:29 UTC (rev 8295)
+++ trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java	2009-11-17 10:54:10 UTC (rev 8296)
@@ -673,7 +673,6 @@
                                                                  bridge.getName(),
                                                                  distance + 1);
 
-         bindings.put(clusterName, binding);
 
          if (postOffice.getBinding(clusterName) != null)
          {
@@ -688,6 +687,8 @@
             return;
          }
 
+         bindings.put(clusterName, binding);
+         
          try
          {
             postOffice.addBinding(binding);



More information about the hornetq-commits mailing list