MCO_RET mco_trans_end (mco_trans_h t, MCO_RET* rollback_status);
t
rollback_status
Ends the current transaction. First a commit is attempted, and if the commit fails for any reason, the function rolls back the transaction. The mco_trans_end returns the result of commit, and the return code of mco_trans_rollback() can be retrieved through the rollback_status OUT parameter. This function was introduced to mitigate the fact that mco_trans_commit() does not any longer automatically rolls back the current transaction if the commit was unsuccessful.
Note that in the context of the Adaptable Deadline policy, mco_trans_end() will return within the deadline (i.e., it respects the deadline). In the context of the Strict Deadline policy it will not return within the deadline because the automatically triggered mco_trans_rollback() is not time-limited.
MCO_S_OK
MCO_S_NOTFOUND
MCO_E_NOMEM
MCO_S_DUPLICATE
MCO_E_TRANSACT
MCO_ERR_TRN