mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Use the correct one to find ManagementServerHostVO
This commit is contained in:
parent
4423e4d174
commit
14c0eb74a0
@ -852,7 +852,7 @@ public class ClusterManagerImpl implements ClusterManager {
|
||||
|
||||
@Override
|
||||
public boolean isManagementNodeAlive(long msid) {
|
||||
ManagementServerHostVO mshost = _mshostDao.findById(msid);
|
||||
ManagementServerHostVO mshost = _mshostDao.findByMsid(msid);
|
||||
if(mshost != null) {
|
||||
if(mshost.getLastUpdateTime().getTime() >= DateUtil.currentGMTTime().getTime() - heartbeatThreshold)
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user