Browse Source

fix bug spelling error in process dao

pull/1/head
baoliang 6 years ago
parent
commit
447189622c
  1. 2
      escheduler-dao/src/main/java/cn/escheduler/dao/ProcessDao.java
  2. 2
      escheduler-server/src/main/java/cn/escheduler/server/zk/ZKMasterClient.java

2
escheduler-dao/src/main/java/cn/escheduler/dao/ProcessDao.java

@ -1272,7 +1272,7 @@ public class ProcessDao extends AbstractBaseDao {
return scheduleMapper.queryById(id);
}
public List<ProcessInstance> queryNeddFailoverProcessInstances(String host){
public List<ProcessInstance> queryNeedFailoverProcessInstances(String host){
return processInstanceMapper.queryByHostAndStatus(host, stateArray);
}

2
escheduler-server/src/main/java/cn/escheduler/server/zk/ZKMasterClient.java

@ -256,7 +256,7 @@ public class ZKMasterClient extends AbstractZKClient {
logger.info("start master failover ...");
List<ProcessInstance> needFailoverProcessInstanceList = processDao.queryNeddFailoverProcessInstances(masterHost);
List<ProcessInstance> needFailoverProcessInstanceList = processDao.queryNeedFailoverProcessInstances(masterHost);
//updateProcessInstance host is null and insert into command
for(ProcessInstance processInstance : needFailoverProcessInstanceList){

Loading…
Cancel
Save