trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [1/3] incubator-trafodion git commit: Exception is thrown, when using TrafT4DataSource in jdbcT4
Date Fri, 31 Mar 2017 20:31:48 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 29307b4c0 -> d0f60fa30


Exception is thrown, when using TrafT4DataSource in jdbcT4


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/ad20cf4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/ad20cf4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/ad20cf4d

Branch: refs/heads/master
Commit: ad20cf4dd388d3eafa040d33e587a55b940db2e5
Parents: 8691d78
Author: Kevin Xu <kaihua.xu@esgyn.cn>
Authored: Thu Mar 30 10:54:20 2017 +0800
Committer: Kevin Xu <kaihua.xu@esgyn.cn>
Committed: Thu Mar 30 10:54:20 2017 +0800

----------------------------------------------------------------------
 .../java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/ad20cf4d/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java
----------------------------------------------------------------------
diff --git a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java
b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java
index e31cd9d..b8d2879 100644
--- a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java
+++ b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4PooledConnectionManager.java
@@ -147,6 +147,9 @@ public class TrafT4PooledConnectionManager implements javax.sql.ConnectionEventL
 							pc.close();
 						} catch (Exception e) {
 						} // cleanup, ignore any errors
+						if (removeInUseConnection(pc, false)) {
+							--count_;
+						}
 					}
 				}
 			}


Mime
View raw message