drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
trx0xa.h
1/*****************************************************************************
2
3Copyright (C) 1995, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/*
20 * Start of xa.h header
21 *
22 * Define a symbol to prevent multiple inclusions of this header file
23 */
24#pragma once
25#ifndef XA_H
26#define XA_H
27
28/*
29 * Transaction branch identification: XID and NULLXID:
30 */
31#ifndef XIDDATASIZE
32
34#define XIDDATASIZE 128
36#define MAXGTRIDSIZE 64
37#define MAXBQUALSIZE 64
38
40struct xid_t {
41 long formatID;
45 char data[XIDDATASIZE];
47};
48
49typedef struct xid_t XID;
50#endif
52/* @{ */
53#define XA_OK 0
54#define XAER_ASYNC -2
56#define XAER_RMERR -3
59#define XAER_NOTA -4
60#define XAER_INVAL -5
61#define XAER_PROTO -6
63#define XAER_RMFAIL -7
64#define XAER_DUPID -8
65#define XAER_OUTSIDE -9
67/* @} */
68#endif /* ifndef XA_H */
69/*
70 * End of xa.h header
71 */
Definition trx0xa.h:40
long bqual_length
Definition trx0xa.h:44
long formatID
Definition trx0xa.h:41
char data[XIDDATASIZE]
Definition trx0xa.h:45
long gtrid_length
Definition trx0xa.h:43