mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for DruidDataSource fast-fail
This commit is contained in:
@@ -1454,10 +1454,6 @@ public class DruidDataSource extends DruidAbstractDataSource
|
||||
}
|
||||
|
||||
DruidConnectionHolder takeLast() throws InterruptedException, SQLException {
|
||||
if (failFast && createError != null) {
|
||||
throw new DataSourceNotAvailableException(createError);
|
||||
}
|
||||
|
||||
try {
|
||||
while (poolingCount == 0) {
|
||||
emptySignal(); // send signal to CreateThread create connection
|
||||
|
||||
Reference in New Issue
Block a user