mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support dynamic config
This commit is contained in:
@@ -253,10 +253,6 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
return;
|
||||
}
|
||||
|
||||
if (maxActive < this.minIdle) {
|
||||
throw new IllegalArgumentException("maxActive less than minIdle, " + maxActive + " < " + this.minIdle);
|
||||
}
|
||||
|
||||
if (maxActive == 0) {
|
||||
throw new IllegalArgumentException("maxActive can't not set zero");
|
||||
}
|
||||
@@ -265,6 +261,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
this.maxActive = maxActive;
|
||||
return;
|
||||
}
|
||||
|
||||
if (maxActive < this.minIdle) {
|
||||
throw new IllegalArgumentException("maxActive less than minIdle, " + maxActive + " < " + this.minIdle);
|
||||
}
|
||||
|
||||
if (LOG.isInfoEnabled()) {
|
||||
LOG.info("maxActive modified : " + this.maxActive + " -> " + maxActive);
|
||||
|
||||
Reference in New Issue
Block a user