Ayaka Koshibe

DistributedDeviceStore doesn't automatically set role to MASTER

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