Fix JdbcCoordinatorImpl impl of TransactionCoordinatorOwner#isActive()
This commit is contained in:
parent
fa2034275b
commit
dc0f77a236
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue