Skip to content

Commit

Permalink
correct minIdle tasks initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
zrlw authored and wenshao committed Nov 26, 2023
1 parent bbab769 commit 0f4a360
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ public void init() throws SQLException {
if (keepAlive) {
// async fill to minIdle
if (createScheduler != null) {
for (int i = 0; i < minIdle; ++i) {
for (int i = 0; i < minIdle - initialSize; ++i) {
submitCreateTask(true);
}
} else {
Expand Down

0 comments on commit 0f4a360

Please sign in to comment.