Skip to content

Commit 6c957a4

Browse files
committed
heartbeat_init_for_create_conn (#1660)
1 parent 8a06a5c commit 6c957a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/actiontech/dble/backend/datasource/PhysicalDatasource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public DBHostConfig getConfig() {
572572
}
573573

574574
public boolean isAlive() {
575-
return !disabled.get() && (heartbeat.isHeartBeatOK() || (heartbeat.isStop() && testConnSuccess));
575+
return !disabled.get() && ((heartbeat.getStatus() == MySQLHeartbeat.INIT_STATUS && testConnSuccess) || heartbeat.isHeartBeatOK());
576576
}
577577

578578

0 commit comments

Comments
 (0)