CUBRID Engine  latest
xa.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xid_t
 
struct  xa_switch_t
 

Macros

#define XIDDATASIZE   128 /* size in bytes */
 
#define MAXGTRIDSIZE   64 /* maximum size in bytes of gtrid */
 
#define MAXBQUALSIZE   64 /* maximum size in bytes of bqual */
 
#define RMNAMESZ   32 /* length of resource manager name */
 
#define TMNOFLAGS   0x00000000L /* no resource manager features selected */
 
#define TMREGISTER   0x00000001L /* resource manager dynamically registers */
 
#define TMNOMIGRATE   0x00000002L /* resource manager does not support association migration */
 
#define TMUSEASYNC   0x00000004L /* resource manager supports asynchronous operations */
 
#define TMASYNC   0x80000000L /* perform routine asynchronously */
 
#define TMONEPHASE   0x40000000L /* caller is using one-phase commit optimisation */
 
#define TMFAIL   0x20000000L /* dissociates caller and marks transaction branch rollback-only */
 
#define TMNOWAIT   0x10000000L /* return if blocking condition exists */
 
#define TMRESUME   0x08000000L /* caller is resuming association with suspended transaction branch */
 
#define TMSUCCESS   0x04000000L /* dissociate caller from transaction branch */
 
#define TMSUSPEND   0x02000000L /* caller is suspending, not ending, association */
 
#define TMSTARTRSCAN   0x01000000L /* start a recovery scan */
 
#define TMENDRSCAN   0x00800000L /* end a recovery scan */
 
#define TMMULTIPLE   0x00400000L /* wait for any asynchronous operation */
 
#define TMJOIN   0x00200000L /* caller is joining existing transaction branch */
 
#define TMMIGRATE   0x00100000L /* caller intends to perform migration */
 
#define TM_JOIN   2 /* caller is joining existing transaction branch */
 
#define TM_RESUME   1 /* caller is resuming association with suspended transaction branch */
 
#define TM_OK   0 /* normal execution */
 
#define TMER_TMERR   -1 /* an error occurred in the transaction manager */
 
#define TMER_INVAL   -2 /* invalid arguments were given */
 
#define TMER_PROTO   -3 /* routine invoked in an improper context */
 
#define XA_RBBASE   100 /* The inclusive lower bound of the rollback codes */
 
#define XA_RBROLLBACK   XA_RBBASE /* The rollback was caused by an unspecified reason */
 
#define XA_RBCOMMFAIL   XA_RBBASE+1 /* The rollback was caused by a communication failure */
 
#define XA_RBDEADLOCK   XA_RBBASE+2 /* A deadlock was detected */
 
#define XA_RBINTEGRITY   XA_RBBASE+3 /* A condition that violates the integrity of the resources was detected */
 
#define XA_RBOTHER
 
#define XA_RBPROTO   XA_RBBASE+5 /* A protocal error occurred in the resource manager */
 
#define XA_RBTIMEOUT   XA_RBBASE+6 /* A transaction branch took too long */
 
#define XA_RBTRANSIENT   XA_RBBASE+7 /* May retry the transaction branch */
 
#define XA_RBEND   XA_RBTRANSIENT /* The inclusive upper bound of the rollback codes */
 
#define XA_NOMIGRATE   9 /* resumption must occur where suspension occurred */
 
#define XA_HEURHAZ   8 /* the transaction branch may have been heuristically completed */
 
#define XA_HEURCOM   7 /* the transaction branch has been heuristically comitted */
 
#define XA_HEURRB   6 /* the transaction branch has been heuristically rolled back */
 
#define XA_HEURMIX   5 /* the transaction branch has been heuristically committed and rolled back */
 
#define XA_RETRY   4 /* routine returned with no effect and may be re-issued */
 
#define XA_RDONLY   3 /* the transaction was read-only and has been committed */
 
#define XA_OK   0 /* normal execution */
 
#define XAER_ASYNC   -2 /* asynchronous operation already outstanding */
 
#define XAER_RMERR   -3 /* a resource manager error occurred in the transaction branch */
 
#define XAER_NOTA   -4 /* the XID is not valid */
 
#define XAER_INVAL   -5 /* invalid arguments were given */
 
#define XAER_PROTO   -6 /* routine invoked in an improper context */
 
#define XAER_RMFAIL   -7 /* resource manager unavailable */
 
#define XAER_DUPID   -8 /* the XID already exists */
 
#define XAER_OUTSIDE   -9 /* resource manager doing work */
 

Typedefs

typedef struct xid_t XID
 

Functions

int ax_reg ()
 
int ax_unreg ()
 

Macro Definition Documentation

#define MAXBQUALSIZE   64 /* maximum size in bytes of bqual */

Definition at line 36 of file xa.h.

#define MAXGTRIDSIZE   64 /* maximum size in bytes of gtrid */

Definition at line 35 of file xa.h.

#define RMNAMESZ   32 /* length of resource manager name */

Definition at line 63 of file xa.h.

#define TM_JOIN   2 /* caller is joining existing transaction branch */

Definition at line 124 of file xa.h.

#define TM_OK   0 /* normal execution */

Definition at line 126 of file xa.h.

#define TM_RESUME   1 /* caller is resuming association with suspended transaction branch */

Definition at line 125 of file xa.h.

#define TMASYNC   0x80000000L /* perform routine asynchronously */

Definition at line 108 of file xa.h.

#define TMENDRSCAN   0x00800000L /* end a recovery scan */

Definition at line 116 of file xa.h.

#define TMER_INVAL   -2 /* invalid arguments were given */

Definition at line 128 of file xa.h.

#define TMER_PROTO   -3 /* routine invoked in an improper context */

Definition at line 129 of file xa.h.

#define TMER_TMERR   -1 /* an error occurred in the transaction manager */

Definition at line 127 of file xa.h.

#define TMFAIL   0x20000000L /* dissociates caller and marks transaction branch rollback-only */

Definition at line 110 of file xa.h.

#define TMJOIN   0x00200000L /* caller is joining existing transaction branch */

Definition at line 118 of file xa.h.

#define TMMIGRATE   0x00100000L /* caller intends to perform migration */

Definition at line 119 of file xa.h.

#define TMMULTIPLE   0x00400000L /* wait for any asynchronous operation */

Definition at line 117 of file xa.h.

#define TMNOFLAGS   0x00000000L /* no resource manager features selected */

Definition at line 99 of file xa.h.

#define TMNOMIGRATE   0x00000002L /* resource manager does not support association migration */

Definition at line 101 of file xa.h.

#define TMNOWAIT   0x10000000L /* return if blocking condition exists */

Definition at line 111 of file xa.h.

#define TMONEPHASE   0x40000000L /* caller is using one-phase commit optimisation */

Definition at line 109 of file xa.h.

#define TMREGISTER   0x00000001L /* resource manager dynamically registers */

Definition at line 100 of file xa.h.

#define TMRESUME   0x08000000L /* caller is resuming association with suspended transaction branch */

Definition at line 112 of file xa.h.

#define TMSTARTRSCAN   0x01000000L /* start a recovery scan */

Definition at line 115 of file xa.h.

#define TMSUCCESS   0x04000000L /* dissociate caller from transaction branch */

Definition at line 113 of file xa.h.

#define TMSUSPEND   0x02000000L /* caller is suspending, not ending, association */

Definition at line 114 of file xa.h.

#define TMUSEASYNC   0x00000004L /* resource manager supports asynchronous operations */

Definition at line 102 of file xa.h.

#define XA_HEURCOM   7 /* the transaction branch has been heuristically comitted */

Definition at line 148 of file xa.h.

#define XA_HEURHAZ   8 /* the transaction branch may have been heuristically completed */

Definition at line 147 of file xa.h.

#define XA_HEURMIX   5 /* the transaction branch has been heuristically committed and rolled back */

Definition at line 150 of file xa.h.

#define XA_HEURRB   6 /* the transaction branch has been heuristically rolled back */

Definition at line 149 of file xa.h.

#define XA_NOMIGRATE   9 /* resumption must occur where suspension occurred */

Definition at line 146 of file xa.h.

#define XA_OK   0 /* normal execution */

Definition at line 153 of file xa.h.

#define XA_RBBASE   100 /* The inclusive lower bound of the rollback codes */

Definition at line 134 of file xa.h.

#define XA_RBCOMMFAIL   XA_RBBASE+1 /* The rollback was caused by a communication failure */

Definition at line 136 of file xa.h.

#define XA_RBDEADLOCK   XA_RBBASE+2 /* A deadlock was detected */

Definition at line 137 of file xa.h.

#define XA_RBEND   XA_RBTRANSIENT /* The inclusive upper bound of the rollback codes */

Definition at line 144 of file xa.h.

#define XA_RBINTEGRITY   XA_RBBASE+3 /* A condition that violates the integrity of the resources was detected */

Definition at line 138 of file xa.h.

#define XA_RBOTHER
Value:
XA_RBBASE+4 /* The resource manager rolled back the transaction for a reason not on this
* list */
#define XA_RBBASE
Definition: xa.h:134

Definition at line 139 of file xa.h.

#define XA_RBPROTO   XA_RBBASE+5 /* A protocal error occurred in the resource manager */

Definition at line 141 of file xa.h.

#define XA_RBROLLBACK   XA_RBBASE /* The rollback was caused by an unspecified reason */

Definition at line 135 of file xa.h.

#define XA_RBTIMEOUT   XA_RBBASE+6 /* A transaction branch took too long */

Definition at line 142 of file xa.h.

#define XA_RBTRANSIENT   XA_RBBASE+7 /* May retry the transaction branch */

Definition at line 143 of file xa.h.

#define XA_RDONLY   3 /* the transaction was read-only and has been committed */

Definition at line 152 of file xa.h.

#define XA_RETRY   4 /* routine returned with no effect and may be re-issued */

Definition at line 151 of file xa.h.

#define XAER_ASYNC   -2 /* asynchronous operation already outstanding */

Definition at line 154 of file xa.h.

#define XAER_DUPID   -8 /* the XID already exists */

Definition at line 160 of file xa.h.

#define XAER_INVAL   -5 /* invalid arguments were given */

Definition at line 157 of file xa.h.

#define XAER_NOTA   -4 /* the XID is not valid */

Definition at line 156 of file xa.h.

#define XAER_OUTSIDE   -9 /* resource manager doing work */

Definition at line 161 of file xa.h.

#define XAER_PROTO   -6 /* routine invoked in an improper context */

Definition at line 158 of file xa.h.

#define XAER_RMERR   -3 /* a resource manager error occurred in the transaction branch */

Definition at line 155 of file xa.h.

#define XAER_RMFAIL   -7 /* resource manager unavailable */

Definition at line 159 of file xa.h.

#define XIDDATASIZE   128 /* size in bytes */

Definition at line 34 of file xa.h.

Typedef Documentation

typedef struct xid_t XID

Definition at line 37 of file xa.h.

Function Documentation

int ax_reg ( )
int ax_unreg ( )