During getConnection() only try to fill the pool when it is empty.

pull/1/head
Brett Wooldridge 11 years ago
parent 4dd5d75bac
commit 03a44b7ab5

@ -106,7 +106,7 @@ public class HikariPool
final long start = System.currentTimeMillis(); final long start = System.currentTimeMillis();
do do
{ {
if (idleConnectionCount.get() == 0 || totalConnections.get() < configuration.getMinimumPoolSize()) if (idleConnectionCount.get() == 0)
{ {
fillPool(); fillPool();
} }

Loading…
Cancel
Save