Return a handle for active transaction
MCO_RET mco_trans_get_current(mco_db_h db, mco_trans_h* t);
db | The database handle that was established by mco_db_connect() |
t | The address of a mco_trans_h to receive the transaction handle |
Returns a handle for the active transaction if there is a running transaction that can be interrupted
Should be invoked from a control point callback or a timer.
MCO_S_OK | Transaction handle retrieved successfully |
MCO_E_TRANS_NOT_ACTIVE | No active transaction that can be interrupted |