tx_set_commit_return — Set commit return mode for TX API
#include <tx.h>
int tx_set_commit_return(COMMIT_RETURN when_return);
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 how tx_commit(3) shall behave. Setting affects current transaction and is used during the phase when commit is performed. The setting value is stored in thread local stored for particular control thread.
Parameter when_return accepts following values:
TX_EINVAL The value of when_return is not TX_COMMIT_DECISION_LOGGED nor TX_COMMIT_COMPLETED.
TX_PROTOCOL_ERROR Transaction manager is not open by tx_open(3)