git-svn-id: http://code.alibabatech.com/svn/druid/trunk@586 b9813039-fb51-4c41-a8b9-e21c2acb5095

This commit is contained in:
wenshao
2011-09-02 16:18:37 +00:00
parent 224758514c
commit 5c2dd78c7d
@@ -532,8 +532,13 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
if (poolingCount == 0) {
lowWater.signal(); // send signal to CreateThread create connection
estimate = notEmpty.awaitNanos(estimate); // signal by recycle or creator
try {
estimate = notEmpty.awaitNanos(estimate); // signal by recycle or creator
} catch (InterruptedException ie) {
notEmpty.signal(); // propagate to non-interrupted thread
throw ie;
}
if (poolingCount == 0) {
if (estimate > 0) {
continue;