From: Chi-Vien Ly Date: Mon, 27 Jan 2014 19:35:54 +0000 (-0800) Subject: Topology misses host(s) if multiple hosts are found on the same port X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~566 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=22c176219496859faa2fc5d049c0199f26859567 Topology misses host(s) if multiple hosts are found on the same port Change-Id: Ief8afc9fc9dbdcc768b0fbdc8d4059fef6fd79a9 Signed-off-by: Chi-Vien Ly --- diff --git a/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java b/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java index 3618547ac8..cc1a8b868d 100644 --- a/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java +++ b/opendaylight/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java @@ -522,7 +522,7 @@ public class TopologyManagerImpl implements } @Override - public void updateHostLink(NodeConnector port, Host h, UpdateType t, Set props) { + public synchronized void updateHostLink(NodeConnector port, Host h, UpdateType t, Set props) { // Clone the property set in case non null else just // create an empty one. Caches allocated via infinispan