~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2008-12-06 22:41:03 UTC
  • mto: (656.1.7 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: monty@inaugust.com-20081206224103-jdouqwt9hb0f01y1
Moved non-working tests into broken suite for easier running of working tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
1
/*
20
2
 * Start of xa.h header
21
3
 *
29
11
 */
30
12
#ifndef XIDDATASIZE
31
13
 
32
 
/** Sizes of transaction identifier */
33
 
#define XIDDATASIZE     128             /*!< maximum size of a transaction
34
 
                                        identifier, in bytes */
35
 
#define MAXGTRIDSIZE     64             /*!< maximum size in bytes of gtrid */
36
 
#define MAXBQUALSIZE     64             /*!< maximum size in bytes of bqual */
 
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 */
37
17
 
38
 
/** X/Open XA distributed transaction identifier */
39
18
struct xid_t {
40
 
        long formatID;                  /*!< format identifier; -1
 
19
        long formatID;                  /* format identifier; -1
41
20
                                        means that the XID is null */
42
 
        long gtrid_length;              /*!< value from 1 through 64 */
43
 
        long bqual_length;              /*!< value from 1 through 64 */
44
 
        char data[XIDDATASIZE];         /*!< distributed transaction
45
 
                                        identifier */
 
21
        long gtrid_length;              /* value from 1 through 64 */
 
22
        long bqual_length;              /* value from 1 through 64 */
 
23
        char data[XIDDATASIZE];
46
24
};
47
 
/** X/Open XA distributed transaction identifier */
48
25
typedef struct xid_t XID;
49
26
#endif
50
 
/** X/Open XA distributed transaction status codes */
51
 
/* @{ */
52
 
#define XA_OK           0               /*!< normal execution */
53
 
#define XAER_ASYNC      -2              /*!< asynchronous operation already
 
27
#define XA_OK           0               /* normal execution */
 
28
#define XAER_ASYNC      -2              /* asynchronous operation already
54
29
                                        outstanding */
55
 
#define XAER_RMERR      -3              /*!< a resource manager error
56
 
                                        occurred in the transaction
57
 
                                        branch */
58
 
#define XAER_NOTA       -4              /*!< the XID is not valid */
59
 
#define XAER_INVAL      -5              /*!< invalid arguments were given */
60
 
#define XAER_PROTO      -6              /*!< routine invoked in an improper
 
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
61
35
                                        context */
62
 
#define XAER_RMFAIL     -7              /*!< resource manager unavailable */
63
 
#define XAER_DUPID      -8              /*!< the XID already exists */
64
 
#define XAER_OUTSIDE    -9              /*!< resource manager doing
65
 
                                        work outside transaction */
66
 
/* @} */
 
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 */
67
40
#endif /* ifndef XA_H */
68
41
/*
69
42
 * End of xa.h header