Merge "Fixed bug in HostTracker.retrieveCache() where incorrect variable is being...
authorGiovanni Meo <gmeo@cisco.com>
Wed, 17 Apr 2013 06:10:11 +0000 (06:10 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 17 Apr 2013 06:10:11 +0000 (06:10 +0000)
opendaylight/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/HostTracker.java

index 7046e343e726658d37ec1ea9e49006136c4b261c..371dca69698f8616178e18af522a310ab12e2c1d 100644 (file)
@@ -201,7 +201,7 @@ public class HostTracker implements IfIptoHost, IfHostListener,
         logger.debug("Retrieving cache for HostTrackerIH");
         inactiveStaticHosts = (ConcurrentMap<NodeConnector, HostNodeConnector>) this.clusterContainerService
                 .getCache("hostTrackerIH");
-        if (hostsDB == null) {
+        if (inactiveStaticHosts == null) {
             logger.error("Cache couldn't be retrieved for HostTrackerIH");
         }
         logger.debug("Cache was successfully retrieved for HostTrackerIH");