You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2003/08/12 01:39:53 UTC
cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp PoolableConnectionFactory.java
dirkv 2003/08/11 16:39:53
Modified: dbcp/src/java/org/apache/commons/dbcp
PoolableConnectionFactory.java
Log:
Bugzilla Bug 21273: Memory-leak like behaviour in DBCP due
to warnings chained to connections in the pool
Applied patch by Joachim Schuler
Revision Changes Path
1.8 +5 -4 jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
Index: PoolableConnectionFactory.java
===================================================================
RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- PoolableConnectionFactory.java 9 Apr 2003 00:19:37 -0000 1.7
+++ PoolableConnectionFactory.java 11 Aug 2003 23:39:53 -0000 1.8
@@ -256,6 +256,7 @@
if(!conn.getAutoCommit()) {
conn.rollback();
}
+ conn.clearWarnings();
}
if(obj instanceof DelegatingConnection) {
((DelegatingConnection)obj).passivate();