mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add method : DruidDataSource.discardConnection(ConnectionHolder)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user