bug fixed for DruidDataSource fast-fail

This commit is contained in:
高铁
2016-02-16 13:23:52 +08:00
parent 965c923757
commit b5151848b7
@@ -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