mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
setLastActiveTimeMillis after execute
This commit is contained in:
@@ -1006,14 +1006,16 @@ public class DruidPooledConnection implements javax.sql.PooledConnection, Connec
|
||||
}
|
||||
|
||||
final void beforeExecute() {
|
||||
running = true;
|
||||
final ConnectionHolder holder = this.holder;
|
||||
if (holder != null && holder.getDataSource().isRemoveAbandoned()) {
|
||||
running = true;
|
||||
}
|
||||
}
|
||||
|
||||
final void afterExecute() {
|
||||
running = false;
|
||||
|
||||
final ConnectionHolder holder = this.holder;
|
||||
if (holder != null && holder.getDataSource().isRemoveAbandoned()) {
|
||||
running = false;
|
||||
holder.setLastActiveTimeMillis(System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user