Merge pull request #1074 from wenshao/master

bug fixed for DruidDataSource fast-fail
This commit is contained in:
wenshao
2016-02-16 13:21:54 +08:00
@@ -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