tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1519903 - /tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
Date Wed, 04 Sep 2013 02:17:25 GMT
Author: kfujino
Date: Wed Sep  4 02:17:25 2013
New Revision: 1519903

URL: http://svn.apache.org/r1519903
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55342
Remove unnecessary reset of interrupted flag.
If the InterruptedException is thrown, the interrupted flag has been cleared.

Modified:
    tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java

Modified: tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java?rev=1519903&r1=1519902&r2=1519903&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
Wed Sep  4 02:17:25 2013
@@ -392,8 +392,6 @@ public class ConnectionPool {
             } catch (InterruptedException ex) {
                 if (getPoolProperties().getPropagateInterruptState()) {
                     Thread.currentThread().interrupt();
-                } else {
-                    Thread.interrupted();
                 }
             }
             if (pool.size()==0 && force && pool!=busy) pool = busy;
@@ -650,8 +648,6 @@ public class ConnectionPool {
             } catch (InterruptedException ex) {
                 if (getPoolProperties().getPropagateInterruptState()) {
                     Thread.currentThread().interrupt();
-                } else {
-                    Thread.interrupted();
                 }
                 SQLException sx = new SQLException("Pool wait interrupted.");
                 sx.initCause(ex);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message