tpresume − Resume global transaction
#include <atmi.h>
int tpresume (TPTRANID *tranid, long flags);
For XATMI client link with −latmiclt −latmi −lubf −lnstd −lpthread −lrt −lm
For XATMI server link with −latmisrv|−latmisrvnomain|−latmisrvinteg −latmi −lubf −lnstd −lpthread −lrt −lm
Resume global transaction with given transaction data in tranid parameter. trandid previously must be set by tpsuspend(3) call. To resume global transaction, XA sub−system must be open, by tpopen(3). Technically it is possible that resume is done by other process than which did the suspend.
On success, tpresume() return zero; on error, −1 is returned, with tperrno set to indicate the error.
Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.
TPEINVAL Flags was not 0. Or tranid was NULL.
TPEPROTO Global transaction is already started.
TPESYSTEM System failure occurred during serving. See logs i.e. user log, or debugs for more info. Could be the case if XA sub−system is not open by tpopen().
TPEOS System failure occurred during serving. See logs i.e. user log, or debugs for more info.
Report bugs to support@mavimax.com
tpsuspend(3) tpcommit(3) tpopen(3) tpclose(3)
© Mavimax, Ltd