HHH-8942 Micro polishing in hot method of TransactionCoordinatorImpl
Conflicts: hibernate-core/src/main/java/org/hibernate/engine/transaction/internal/TransactionCoordinatorImpl.java Conflicts: hibernate-core/src/main/java/org/hibernate/engine/transaction/internal/TransactionCoordinatorImpl.java
This commit is contained in:
parent
e712a44ec3
commit
361929d269
|
@ -61,7 +61,7 @@ import org.hibernate.service.jta.platform.spi.JtaPlatform;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
public class TransactionCoordinatorImpl implements TransactionCoordinator {
|
public final class TransactionCoordinatorImpl implements TransactionCoordinator {
|
||||||
|
|
||||||
private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, TransactionCoordinatorImpl.class.getName());
|
private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, TransactionCoordinatorImpl.class.getName());
|
||||||
private static final boolean DEBUGGING = LOG.isDebugEnabled();
|
private static final boolean DEBUGGING = LOG.isDebugEnabled();
|
||||||
|
@ -216,7 +216,7 @@ public class TransactionCoordinatorImpl implements TransactionCoordinator {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JtaPlatform jtaPlatform = getTransactionEnvironment().getJtaPlatform();
|
final JtaPlatform jtaPlatform = getTransactionEnvironment().getJtaPlatform();
|
||||||
if ( jtaPlatform == null ) {
|
if ( jtaPlatform == null ) {
|
||||||
// if no jta platform was registered we wont be able to register a jta synchronization
|
// if no jta platform was registered we wont be able to register a jta synchronization
|
||||||
return;
|
return;
|
||||||
|
@ -241,7 +241,7 @@ public class TransactionCoordinatorImpl implements TransactionCoordinator {
|
||||||
|
|
||||||
// Can we resister a synchronization
|
// Can we resister a synchronization
|
||||||
if ( !jtaPlatform.canRegisterSynchronization() ) {
|
if ( !jtaPlatform.canRegisterSynchronization() ) {
|
||||||
if (TRACING) LOG.trace( "registered JTA platform says we cannot currently resister synchronization; skipping" );
|
if (TRACING) LOG.trace( "registered JTA platform says we cannot currently register synchronization; skipping" );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue