mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for dead lock, for issue #2980
This commit is contained in:
@@ -760,6 +760,9 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
|
||||
return;
|
||||
}
|
||||
|
||||
// bug fixed for dead lock, for issue #2980
|
||||
DruidDriver.getInstance();
|
||||
|
||||
final ReentrantLock lock = this.lock;
|
||||
try {
|
||||
lock.lockInterruptibly();
|
||||
|
||||
Reference in New Issue
Block a user