Use the correct one to find ManagementServerHostVO

This commit is contained in:
Kelven Yang 2011-03-10 14:29:10 -08:00
parent 4423e4d174
commit 14c0eb74a0

View File

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