DistributedDeviceStore doesn't automatically set role to MASTER

Change-Id: I106e1d8e84fb6331e71727907bae6c4ef232d382
This commit is contained in:
Ayaka Koshibe 2014-09-24 09:40:47 -07:00
parent 09585c6272
commit f6021f3044

View File

@ -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);
}