提交 b549ee39 编写于 作者: L loushang

fix zk monitor bug

上级 e25342c9
......@@ -119,8 +119,9 @@ public class MonitorService extends BaseService{
public List<Server> getServerListFromZK(boolean isMaster){
checkNotNull(zookeeperMonitor);
ZKNodeType zkNodeType = isMaster ? ZKNodeType.MASTER : ZKNodeType.WORKER;
return checkNotNull(zookeeperMonitor).getServersList(zkNodeType);
return zookeeperMonitor.getServersList(zkNodeType);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册