mco_trans_get_current

Return a handle for active transaction

Prototype

 

    MCO_RET mco_trans_get_current(mco_db_h db, mco_trans_h* t);

 
 

Arguments

db The database handle that was established by mco_db_connect()
t The address of a mco_trans_h to receive the transaction handle

Description

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.

Return Codes

MCO_S_OK Transaction handle retrieved successfully
MCO_E_TRANS_NOT_ACTIVE No active transaction that can be interrupted

Files

Header file:
mco.h
Source file:
mcotrans.c
Library:
libmcolib.a