Skip to content

Commit

Permalink
Do not let RMFAIL handling interfere with the other case statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjenkinson committed Nov 1, 2024
1 parent c3791ca commit 0546657
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,6 @@ public void rollback() throws org.omg.CORBA.SystemException,
_rolledBack = true;
destroyState();
break;
case XAException.XAER_NOTA:
if (_phaseTwoStarted) {
// rolled back previously and recovery completed
destroyState();
break;
}
case XAException.XAER_RMFAIL:
if (_prepared) {
/*
Expand All @@ -409,6 +403,12 @@ public void rollback() throws org.omg.CORBA.SystemException,
// We don't want to report a heuristic as we don't know it won't rollback so throw UNKNOWN
// (noting we end up in the finally for further processing)
throw new UNKNOWN();
case XAException.XAER_NOTA:
if (_phaseTwoStarted) {
// rolled back previously and recovery completed
destroyState();
break;
}
default:
destroyState();

Expand Down

0 comments on commit 0546657

Please sign in to comment.