Ayaka Koshibe

DistributedDeviceStore doesn't automatically set role to MASTER

Change-Id: I106e1d8e84fb6331e71727907bae6c4ef232d382
......@@ -171,8 +171,8 @@ public class DistributedDeviceStore extends AbstractDistributedStore
availableDevices.add(deviceIdBytes);
// For now claim the device as a master automatically.
rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER));
roles.put(deviceId, Optional.of(MastershipRole.MASTER));
//rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER));
//roles.put(deviceId, Optional.of(MastershipRole.MASTER));
}
return new DeviceEvent(DeviceEvent.Type.DEVICE_ADDED, device, null);
}
......