inner-2396:fix delayThreshold not work properly

This commit is contained in:
dcy
2024-06-11 15:21:25 +08:00
parent ab947f0138
commit c2a3acb40c

View File

@@ -392,7 +392,7 @@ public abstract class PhysicalDbInstance implements ReadTimeStatusInstance {
return false;
}
boolean isSync = dbSynStatus == MySQLHeartbeat.DB_SYN_NORMAL;
boolean isNotDelay = slaveBehindMaster <= this.dbGroupConfig.getDelayThreshold();
boolean isNotDelay = slaveBehindMaster <= (this.dbGroupConfig.getDelayThreshold() / 1000);
return isSync && isNotDelay;
}