diff --git a/core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java b/core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java index 3005aee549..69ca361e4e 100644 --- a/core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java +++ b/core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java @@ -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 {