BalanceMastersCommand: Fix type mismatch
Change-Id: If6bbe8d16d70b937250e243e7ac8617b0e971543
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -109,7 +109,7 @@ public class BalanceMastersCommand extends AbstractShellCommand { | ... | @@ -109,7 +109,7 @@ public class BalanceMastersCommand extends AbstractShellCommand { |
109 | DeviceId deviceId = it.next(); | 109 | DeviceId deviceId = it.next(); |
110 | 110 | ||
111 | // Check that the transfer can happen for the current element. | 111 | // Check that the transfer can happen for the current element. |
112 | - if (mastershipService.getNodesFor(deviceId).backups().contains(smallest)) { | 112 | + if (mastershipService.getNodesFor(deviceId).backups().contains(smallest.id())) { |
113 | print("Setting %s as the new master for %s", smallest.id(), deviceId); | 113 | print("Setting %s as the new master for %s", smallest.id(), deviceId); |
114 | adminService.setRole(smallest.id(), deviceId, MastershipRole.MASTER); | 114 | adminService.setRole(smallest.id(), deviceId, MastershipRole.MASTER); |
115 | i++; | 115 | i++; | ... | ... |
-
Please register or login to post a comment