commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r746032 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
Date Thu, 19 Feb 2009 22:21:50 GMT
Author: markt
Date: Thu Feb 19 22:21:50 2009
New Revision: 746032

URL: http://svn.apache.org/viewvc?rev=746032&view=rev
Log:
Fix test failure caused by DBCP-215 fix.

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java?rev=746032&r1=746031&r2=746032&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
Thu Feb 19 22:21:50 2009
@@ -324,7 +324,9 @@
 
         // DBCP-215
         // Trick to make sure that initialSize connections are created
-        dataSource.getLogWriter();
+        if (dataSource.initialSize > 0) {
+            dataSource.getLogWriter();
+        }
 
         // Return the configured DataSource instance
         return dataSource;



Mime
View raw message