Performance tweak

pull/345/head
Brett Wooldridge 10 years ago
parent 73cf8d0b13
commit c87c002ceb

@ -44,10 +44,10 @@ public final class PoolBagEntry implements IConcurrentBagEntry
public volatile boolean evicted;
public volatile boolean aborted;
public boolean isAutoCommit;
int networkTimeout;
int transactionIsolation;
String catalog;
boolean isAutoCommit;
boolean isReadOnly;
private final PoolElf poolElf;

@ -146,13 +146,6 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
return statement;
}
private final void resetConnectionState() throws SQLException
{
poolEntry.resetConnectionState();
lastAccess = clockSource.currentTime();
}
// **********************************************************************
// "Overridden" java.sql.Connection Methods
// **********************************************************************
@ -180,13 +173,14 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
if (isCommitStateDirty) {
lastAccess = clockSource.currentTime();
if (!delegate.getAutoCommit()) {
if (!poolEntry.isAutoCommit) {
delegate.rollback();
}
}
if (isConnectionStateDirty) {
resetConnectionState();
poolEntry.resetConnectionState();
lastAccess = clockSource.currentTime();
}
delegate.clearWarnings();

Loading…
Cancel
Save