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

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Oct 13 17:41:29 EDT 2009


Author: timfox
Date: 2009-10-13 17:41:29 -0400 (Tue, 13 Oct 2009)
New Revision: 8100

Modified:
   trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
Log:
Fixed thread safety issue in clusterconnection control getNodes() method

Modified: trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java	2009-10-13 20:03:52 UTC (rev 8099)
+++ trunk/src/main/org/hornetq/core/server/cluster/impl/ClusterConnectionImpl.java	2009-10-13 21:41:29 UTC (rev 8100)
@@ -261,7 +261,7 @@
       return nodeUUID.toString();
    }
 
-   public Map<String, String> getNodes()
+   public synchronized Map<String, String> getNodes()
    {
       Map<String, String> nodes = new HashMap<String, String>();
       for (Entry<String, MessageFlowRecord> record : records.entrySet( ))



More information about the hornetq-commits mailing list