mirror of
https://github.com/actiontech/dble.git
synced 2026-01-05 12:20:19 -06:00
inner-2396:fix delayThreshold not work properly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user