Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49269
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 11 May 2010 08:01:52 +0000 (08:01 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 11 May 2010 08:01:52 +0000 (08:01 +0000)
Set maxIdle to maxActive by default to prevent warning on start when maxIdle > maxActive
Patch provided by Matt Passell

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@943032 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/PoolProperties.java

index 8de2d09..e960727 100644 (file)
@@ -47,7 +47,7 @@ public class PoolProperties implements PoolConfiguration {
     protected String connectionProperties;
     protected int initialSize = 10;
     protected int maxActive = 100;
-    protected int maxIdle = Integer.MAX_VALUE;
+    protected int maxIdle = maxActive;
     protected int minIdle = initialSize;
     protected int maxWait = 30000;
     protected String validationQuery;