mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add double check for mysql testWhileIdle.
This commit is contained in:
@@ -1206,16 +1206,16 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
|
||||
|
||||
final void beforeExecute() {
|
||||
final DruidConnectionHolder holder = this.holder;
|
||||
if (holder != null && holder.getDataSource().isRemoveAbandoned()) {
|
||||
if (holder != null && holder.dataSource.removeAbandoned) {
|
||||
running = true;
|
||||
}
|
||||
}
|
||||
|
||||
final void afterExecute() {
|
||||
final DruidConnectionHolder holder = this.holder;
|
||||
if (holder != null && holder.getDataSource().isRemoveAbandoned()) {
|
||||
if (holder != null && holder.dataSource.removeAbandoned) {
|
||||
running = false;
|
||||
holder.setLastActiveTimeMillis(System.currentTimeMillis());
|
||||
holder.lastActiveTimeMillis = System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user