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 Jun 12, 2024
1 parent daed9c2 commit 663d652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,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 663d652

Please sign in to comment.