Yuta HIGUCHI

use termService field

Change-Id: I56998905db4f0403e8c244937a788555dea37823
...@@ -254,8 +254,7 @@ public class DeviceManager ...@@ -254,8 +254,7 @@ public class DeviceManager
254 // } 254 // }
255 return; 255 return;
256 } 256 }
257 - MastershipTerm term = mastershipService.requestTermService() 257 + MastershipTerm term = termService.getMastershipTerm(deviceId);
258 - .getMastershipTerm(deviceId);
259 258
260 final NodeId myNodeId = clusterService.getLocalNode().id(); 259 final NodeId myNodeId = clusterService.getLocalNode().id();
261 if (!myNodeId.equals(term.master())) { 260 if (!myNodeId.equals(term.master())) {
......