Fix JdbcCoordinatorImpl impl of TransactionCoordinatorOwner#isActive()

This commit is contained in:
Andrea Boriero 2015-05-12 15:16:01 +01:00 committed by Steve Ebersole
parent fa2034275b
commit dc0f77a236
1 changed files with 1 additions and 4 deletions

View File

@ -78,8 +78,6 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
JdbcCoordinatorImpl.class.getName() JdbcCoordinatorImpl.class.getName()
); );
private boolean closed;
private transient LogicalConnectionImplementor logicalConnection; private transient LogicalConnectionImplementor logicalConnection;
private transient JdbcSessionOwner owner; private transient JdbcSessionOwner owner;
private final ConnectionReleaseMode connectionReleaseMode; private final ConnectionReleaseMode connectionReleaseMode;
@ -209,7 +207,6 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
currentBatch.release(); currentBatch.release();
} }
cleanup(); cleanup();
closed = true;
return logicalConnection.close(); return logicalConnection.close();
} }
@ -492,7 +489,7 @@ public class JdbcCoordinatorImpl implements JdbcCoordinator {
@Override @Override
public boolean isActive() { public boolean isActive() {
return !closed; return !sessionFactory().isClosed();
} }
@Override @Override