Skip to content

Commit

Permalink
Fix for an issue where the order of operations guaranteed an Assertio…
Browse files Browse the repository at this point in the history
…nError if assertions were enabled. Flipped the order instead

(cherry picked from commit 7266a74)
  • Loading branch information
tinwelint committed Jan 25, 2012
1 parent 14fd17e commit c35ce51
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -1290,7 +1290,6 @@ public synchronized void applyTransaction( ReadableByteChannel byteChannel )
{
if ( !successfullyApplied && logApplier.getStartEntry() != null )
{ // Unmap this identifier if tx not applied correctly
xidIdentMap.remove( xidIdent );
try
{
xaRm.forget( logApplier.getStartEntry().getXid() );
Expand All @@ -1299,6 +1298,10 @@ public synchronized void applyTransaction( ReadableByteChannel byteChannel )
{
throw new IOException( e );
}
finally
{
xidIdentMap.remove( xidIdent );
}
}
}
byteChannel.close();
Expand Down

0 comments on commit c35ce51

Please sign in to comment.