~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/trx0xa.h

  • Committer: Monty Taylor
  • Date: 2009-09-30 07:01:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20090930070132-b1ol1xu1rpajdddy
Small namespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Start of xa.h header
3
 
 *
4
 
 * Define a symbol to prevent multiple inclusions of this header file
5
 
 */
6
 
#ifndef XA_H
7
 
#define XA_H
8
 
 
9
 
/*
10
 
 * Transaction branch identification: XID and NULLXID:
11
 
 */
12
 
#ifndef XIDDATASIZE
13
 
 
14
 
#define XIDDATASIZE     128             /* size in bytes */
15
 
#define MAXGTRIDSIZE     64             /* maximum size in bytes of gtrid */
16
 
#define MAXBQUALSIZE     64             /* maximum size in bytes of bqual */
17
 
 
18
 
struct xid_t {
19
 
        long formatID;                  /* format identifier; -1
20
 
                                        means that the XID is null */
21
 
        long gtrid_length;              /* value from 1 through 64 */
22
 
        long bqual_length;              /* value from 1 through 64 */
23
 
        char data[XIDDATASIZE];
24
 
};
25
 
typedef struct xid_t XID;
26
 
#endif
27
 
#define XA_OK           0               /* normal execution */
28
 
#define XAER_ASYNC      -2              /* asynchronous operation already
29
 
                                        outstanding */
30
 
#define XAER_RMERR      -3              /* a resource manager error occurred in
31
 
                                         the transaction branch */
32
 
#define XAER_NOTA       -4              /* the XID is not valid */
33
 
#define XAER_INVAL      -5              /* invalid arguments were given */
34
 
#define XAER_PROTO      -6              /* routine invoked in an improper
35
 
                                        context */
36
 
#define XAER_RMFAIL     -7              /* resource manager unavailable */
37
 
#define XAER_DUPID      -8              /* the XID already exists */
38
 
#define XAER_OUTSIDE    -9              /* resource manager doing work outside
39
 
                                        transaction */
40
 
#endif /* ifndef XA_H */
41
 
/*
42
 
 * End of xa.h header
43
 
 */