After a dsmEndTxn call, the transaction is aborted by either the server or client with a DSM_VOTE_ABORT and the reason is returned.
The system returns to the calling procedure.
Check the reason field for the code which explains why the transaction has been aborted.