Author: kfujino
Date: Tue Jun 28 02:27:21 2016
New Revision: 1750438
URL: http://svn.apache.org/viewvc?rev=1750438&view=rev
Log:
Ensure that do not remove the abandoned connection that has been already
released.
Modified:
tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
Modified:
tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java?rev=1750438&r1=1750437&r2=1750438&view=diff
==============================================================================
---
tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
(original)
+++
tomcat/tc7.0.x/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
Tue Jun 28 02:27:21 2016
@@ -953,9 +953,9 @@ public class ConnectionPool {
boolean setToNull = false;
try {
con.lock();
- //the con has been returned to the pool
+ //the con has been returned to the pool or released
//ignore it
- if (idle.contains(con))
+ if (idle.contains(con) || con.isReleased())
continue;
long time = con.getTimestamp();
long now = System.currentTimeMillis();
Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1750438&r1=1750437&r2=1750438&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Jun 28 02:27:21 2016
@@ -121,6 +121,10 @@
Fix the duplicated connection release when connection verification
failed. (kfujino)
</fix>
+ <fix>
+ Ensure that do not remove the abandoned connection that has been
already
+ released. (kfujino)
+ </fix>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]