#1542 when hreatbeat stop do not sync the status (#1831)

This commit is contained in:
zhengfang.sun
2020-04-29 11:23:24 +08:00
committed by GitHub
parent 3db3952ebd
commit d4ff003692
@@ -142,7 +142,7 @@ public class MySQLDetector implements SQLQueryResultListener<SQLQueryResult<Map<
}
private boolean checkRecoverFail(PhysicalDatasource source) {
if (!heartbeat.isStop()) {
if (heartbeat.isStop()) {
return true;
}
if (heartbeat.getStatus() == MySQLHeartbeat.OK_STATUS) { // ok->ok