mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for scheduler & keepAlive=true
This commit is contained in:
@@ -2489,6 +2489,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
lock.lock();
|
||||
try {
|
||||
if (poolingCount >= maxActive) {
|
||||
if (createScheduler != null) {
|
||||
clearCreateTask(createTaskId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
connections[poolingCount] = holder;
|
||||
|
||||
Reference in New Issue
Block a user