Skip to content

Commit

Permalink
inner-2396:fix delayThreshold not work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dcy10000 committed Aug 1, 2024
1 parent f3a720b commit ced1741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ boolean canSelectAsReadNode() {
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;
}

Expand Down

0 comments on commit ced1741

Please sign in to comment.