User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.0.x:api:xatmi:tpresume.3

TPSUSPEND

TPSUSPEND

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
BUGS
SEE ALSO
COPYING

NAME

tpresume − Resume global transaction

SYNOPSIS

#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

DESCRIPTION

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.

RETURN VALUE

On success, tpresume() return zero; on error, −1 is returned, with tperrno set to indicate the error.

ERRORS

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.

BUGS

Report bugs to support@mavimax.com

SEE ALSO

tpsuspend(3) tpcommit(3) tpopen(3) tpclose(3)

COPYING

© Mavimax, Ltd