Skip to content

Commit

Permalink
Merge pull request #96 from ochaloup/WFTC-75-delete-remote-records-on…
Browse files Browse the repository at this point in the history
…-commit-failure-1.1

[WFTC-75] unfinished XA commit records needs to be recorded for further recovery
  • Loading branch information
tadamski authored Aug 29, 2019
2 parents bd760e9 + 3d69602 commit 6d82690
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void commit(final Xid xid, final boolean onePhase) throws XAException {
try {
if (commitToEnlistment()) lookup(xid).commit(onePhase);
} catch (XAException | RuntimeException exception) {
if (onePhase && resourceRegistry != null)
if (resourceRegistry != null)
resourceRegistry.resourceInDoubt(this);
throw exception;
}
Expand Down

0 comments on commit 6d82690

Please # to comment.