fix mastership
Change-Id: I1f82bfed7ba98df492326c9c4a7be0764b3a6488
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -444,7 +444,7 @@ public class MastershipManager | ... | @@ -444,7 +444,7 @@ public class MastershipManager |
444 | } | 444 | } |
445 | // Create buckets reflecting current ownership. | 445 | // Create buckets reflecting current ownership. |
446 | for (NodeId nodeId : masterSet) { | 446 | for (NodeId nodeId : masterSet) { |
447 | - if (clusterService.getState(nodeId) == ACTIVE) { | 447 | + if (clusterService.getState(nodeId).isActive()) { |
448 | ControllerNode controllerNode = clusterService.getNode(nodeId); | 448 | ControllerNode controllerNode = clusterService.getNode(nodeId); |
449 | Set<DeviceId> devicesOf = new HashSet<>(allControllerDevices.get(controllerNode)); | 449 | Set<DeviceId> devicesOf = new HashSet<>(allControllerDevices.get(controllerNode)); |
450 | regionalControllerDevices.put(controllerNode, devicesOf); | 450 | regionalControllerDevices.put(controllerNode, devicesOf); | ... | ... |
-
Please register or login to post a comment