add method : DruidDataSource.discardConnection(ConnectionHolder)

This commit is contained in:
高铁
2019-10-29 15:34:32 +08:00
parent 1a4aea6c6e
commit cb72382549
6 changed files with 51 additions and 18 deletions
@@ -85,7 +85,12 @@ public final class JdbcUtils implements JdbcConstants {
if (x == null) {
return;
}
try {
if (x.isClosed()) {
return;
}
x.close();
} catch (Exception e) {
LOG.debug("close connection error", e);