Skip to content

Commit 5f35185

Browse files
author
chengyitian
committed
AJ-733: delete no use check logic for pool;
1 parent b15be3d commit 5f35185

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/com/xxdb/SimpleDBConnectionPoolConfig.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,6 @@ protected void validate() {
201201
log.warn("Login needs password.");
202202
}
203203

204-
if (initialPoolSize <= 0) {
205-
initialPoolSize = 5;
206-
log.warn("The number of connection pools is invalid, will use the default value 5.");
207-
}
208-
209204
if (initialPoolSize > 0 && minimumPoolSize == -1 && maximumPoolSize == -1) {
210205
// 兼容旧版逻辑(只填init,不填mini、max的场景):将最小、最大设置为 initialPoolSize 的值
211206
minimumPoolSize = initialPoolSize;

0 commit comments

Comments
 (0)