Madan Jampani
Committed by Gerrit Code Review

ONOS-1893: Fix incorrect event type in device mastership change notification

Change-Id: I5c317433ca8ac9e3f4305fb3519da48fb9da67e8
...@@ -17,7 +17,6 @@ package org.onosproject.store.mastership.impl; ...@@ -17,7 +17,6 @@ package org.onosproject.store.mastership.impl;
17 17
18 import static org.onlab.util.Tools.groupedThreads; 18 import static org.onlab.util.Tools.groupedThreads;
19 import static org.onlab.util.Tools.futureGetOrElse; 19 import static org.onlab.util.Tools.futureGetOrElse;
20 -import static org.onosproject.mastership.MastershipEvent.Type.BACKUPS_CHANGED;
21 import static org.onosproject.mastership.MastershipEvent.Type.MASTER_CHANGED; 20 import static org.onosproject.mastership.MastershipEvent.Type.MASTER_CHANGED;
22 import static org.slf4j.LoggerFactory.getLogger; 21 import static org.slf4j.LoggerFactory.getLogger;
23 import static com.google.common.base.Preconditions.checkArgument; 22 import static com.google.common.base.Preconditions.checkArgument;
...@@ -408,7 +407,7 @@ public class ConsistentDeviceMastershipStore ...@@ -408,7 +407,7 @@ public class ConsistentDeviceMastershipStore
408 // There is no concept of leader re-election in the new distributed leadership manager. 407 // There is no concept of leader re-election in the new distributed leadership manager.
409 throw new IllegalStateException("Unexpected event type"); 408 throw new IllegalStateException("Unexpected event type");
410 case LEADER_BOOTED: 409 case LEADER_BOOTED:
411 - notifyDelegate(new MastershipEvent(BACKUPS_CHANGED, deviceId, getNodes(deviceId))); 410 + notifyDelegate(new MastershipEvent(MASTER_CHANGED, deviceId, getNodes(deviceId)));
412 break; 411 break;
413 default: 412 default:
414 return; 413 return;
......