tx_set_transaction_control — Set how to behave at tx_commit() or tx_rollback()
#include <tx.h>
int tx_set_transaction_control(TRANSACTION_CONTROL control);
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
Change the logic of how tx_commit(3) or tx_rollback(3) shall behave.
Setting affects current transaction and is used during the phase when commit or abort is performed. The setting value is stored in thread local stored for particular control thread.
Parameter control accepts following values:
TX_EINVAL The value of when_return is not TX_UNCHAINED nor TX_CHAINED.
TX_PROTOCOL_ERROR Transaction manager is not open by tx_open(3)