mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for FilterChainImpl
This commit is contained in:
@@ -4394,11 +4394,21 @@ public class FilterChainImpl implements FilterChain {
|
||||
|
||||
@Override
|
||||
public void dataSource_recycle(DruidPooledConnection connection) throws SQLException {
|
||||
if (this.pos < filterSize) {
|
||||
nextFilter().dataSource_recycle(this, connection);
|
||||
return;
|
||||
}
|
||||
|
||||
connection.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DruidPooledConnection dataSource_connect(DruidDataSource dataSource, long maxWaitMillis) throws SQLException {
|
||||
if (this.pos < filterSize) {
|
||||
DruidPooledConnection conn = nextFilter().dataSource_connect(this, dataSource, maxWaitMillis);
|
||||
return conn;
|
||||
}
|
||||
|
||||
return dataSource.getConnectionDirect(maxWaitMillis);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user