Skip to content

Commit

Permalink
Close #438: Fix regression on fetchAndLock long poll.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasschaefer committed Nov 11, 2022
1 parent 03709c9 commit fdbe1a7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ public MnTransactionContext(CommandContext commandContext, SynchronousTransactio
this.commandContext = commandContext;
this.transactionManager = transactionManager;

TransactionSynchronizationManager.getSynchronousTransactionState(new TransactionSynchronizationAdapter() {
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapter() {
@Override
public void beforeCommit(boolean readOnly) {
lastTransactionState = COMMITTING;
Expand Down Expand Up @@ -123,7 +123,7 @@ public void afterCompletion(@NonNull Status status) {
default:
throw new IllegalStateException("Unknown transaction state: " + transactionState);
}
TransactionSynchronizationManager.getSynchronousTransactionState(transactionSynchronization);
TransactionSynchronizationManager.registerSynchronization(transactionSynchronization);
}

@Override
Expand Down

0 comments on commit fdbe1a7

Please sign in to comment.