mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for multi-thread use one connection.
This commit is contained in:
@@ -69,13 +69,14 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
|
||||
private volatile boolean abandoned = false;
|
||||
protected StackTraceElement[] connectStackTrace;
|
||||
protected Throwable disableError = null;
|
||||
public ReentrantLock lock = new ReentrantLock();
|
||||
final ReentrantLock lock;
|
||||
|
||||
public DruidPooledConnection(DruidConnectionHolder holder){
|
||||
super(holder.getConnection());
|
||||
|
||||
this.conn = holder.getConnection();
|
||||
this.holder = holder;
|
||||
this.lock = holder.lock;
|
||||
dupCloseLogEnable = holder.getDataSource().isDupCloseLogEnable();
|
||||
ownerThread = Thread.currentThread();
|
||||
connectedTimeMillis = System.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user