align log with 'Before cleanup'

pull/444/head
Nitin 9 years ago
parent 1c2f1c13a5
commit 0da14c8ce9

@ -442,6 +442,7 @@ public class HikariPool extends PoolBase implements HikariPoolMXBean, IBagStateL
// Speculative increment of totalConnections with expectation of success
if (totalConnections.incrementAndGet() > config.getMaximumPoolSize()) {
totalConnections.decrementAndGet(); // Pool is maxed out, so undo speculative increment of totalConnections
LOGGER.debug("{} - Cannot exceed maximum connections capacity: {}", poolName, config.getMaximumPoolSize());
return true;
}
@ -487,7 +488,7 @@ public class HikariPool extends PoolBase implements HikariPoolMXBean, IBagStateL
addConnectionExecutor.execute(new Runnable() {
@Override
public void run() {
logPoolState("After fill\t");
logPoolState("After adding\t");
}
});
}

Loading…
Cancel
Save