Skip to content

Commit

Permalink
fix pmd
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly committed Nov 12, 2024
1 parent 4e21344 commit 2aa31b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* The type Abstract session manager.
*/
public abstract class AbstractSessionManager implements SessionManager {
boolean ROLLBACK_FAILED_UNLOCK_ENABLE = ConfigurationFactory.getInstance().getBoolean(
boolean rollbackFailedUnlockEnable = ConfigurationFactory.getInstance().getBoolean(
ConfigurationKeys.ROLLBACK_FAILED_UNLOCK_ENABLE, DEFAULT_ROLLBACK_FAILED_UNLOCK_ENABLE);

/**
Expand Down Expand Up @@ -163,7 +163,7 @@ public void onSuccessEnd(GlobalSession globalSession) throws TransactionExceptio

@Override
public void onFailEnd(GlobalSession globalSession) throws TransactionException {
if (ROLLBACK_FAILED_UNLOCK_ENABLE ) {
if (rollbackFailedUnlockEnable) {
globalSession.clean();
LOGGER.info("xid:{} fail end and remove lock, transaction:{}", globalSession.getXid(), globalSession);
return;
Expand Down

0 comments on commit 2aa31b8

Please sign in to comment.