changed DruidDataSource discardConnectiion filling logic

This commit is contained in:
高铁
2016-03-11 11:49:34 +08:00
parent b495a36b22
commit fa102ee0a3
2 changed files with 5 additions and 1 deletions
@@ -931,6 +931,10 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
if (inited && value > this.maxActive) {
throw new IllegalArgumentException("minIdle greater than maxActive, " + maxActive + " < " + this.minIdle);
}
if (minIdle < 0) {
throw new IllegalArgumentException("minIdle must > 0");
}
this.minIdle = value;
}