commit | 2999e3d7c1eb1a71555a461ef50da259203560b8 | [log] [tgz] |
---|---|---|
author | Naoki Shiota <n-shiota@onlab.us> | Fri Jan 03 17:22:59 2014 -0800 |
committer | Naoki Shiota <n-shiota@onlab.us> | Fri Jan 03 17:22:59 2014 -0800 |
tree | a8fd2e11413f0eac005e2863607ce78d6df9ecc1 | |
parent | 1a5ca91977fd7c43b7e9ff3b5b1dda2a8e307ab4 [diff] |
Fixed bug in refactoring.
diff --git a/src/main/java/net/onrc/onos/registry/controller/ZookeeperRegistry.java b/src/main/java/net/onrc/onos/registry/controller/ZookeeperRegistry.java index 5dd4fc9..3e4d5bf 100644 --- a/src/main/java/net/onrc/onos/registry/controller/ZookeeperRegistry.java +++ b/src/main/java/net/onrc/onos/registry/controller/ZookeeperRegistry.java
@@ -99,8 +99,9 @@ //may have since released the request or even begun another request //(this is why we use == to check the object instance is the same) SwitchLeadershipData swData = switches.get(dpid); - if (swData != null) { + if (swData == null) { log.debug("Leadership data {} not found", dpid); + return; } if (swData.getLatch() == latch){