Skip to content

Commit

Permalink
修复,集群从节点无法联通的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjunli committed Sep 23, 2017
1 parent b218c17 commit 2fdd7b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public int getDataSourceInitStatus(){
int initstatus = DBHeartbeat.OK_STATUS;
MyCluster myCluster = ProxyRuntime.INSTANCE.getMyCLuster();

if(myCluster.getMyLeader()==myCluster.getMyNode()){
if(myCluster==null||myCluster.getMyLeader()==myCluster.getMyNode()){
initstatus = DBHeartbeat.INIT_STATUS;
}
return initstatus;
Expand Down

0 comments on commit 2fdd7b5

Please sign in to comment.