~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.h

  • Committer: lbieber
  • Date: 2010-09-07 22:29:56 UTC
  • mfrom: (1747.1.3 build)
  • Revision ID: lbieber@orisndriz03-20100907222956-d60u695b7hx3zs0d
Merge Andrew - bug 597778 - Timestamp cannot reliably store leap seconds, so don't try. Leave that to datetime only
Merge Andrew - bug 621862 - Add / clean-up error messages for unireg_abort
Merge Andrew - bug 629563 - Drop the broken --mysql options and Change the --protocol option to accept 'mysql' or 'drizzle' ('mysql' currently default)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
  http://www.opengroup.org/bookstore/catalog/c193.htm
82
82
 
83
83
*/
84
 
 
85
 
class drizzle_xid {
86
 
public:
 
84
struct st_drizzle_xid {
87
85
  long formatID;
88
86
  long gtrid_length;
89
87
  long bqual_length;
90
88
  char data[DRIZZLE_XIDDATASIZE];  /* Not \0-terminated */
91
 
 
92
 
  drizzle_xid() :
93
 
    formatID(0),
94
 
    gtrid_length(0),
95
 
    bqual_length(0)
96
 
  {
97
 
    memset(data, 0, DRIZZLE_XIDDATASIZE);
98
 
  }
99
89
};
100
 
typedef class drizzle_xid DRIZZLE_XID;
 
90
typedef struct st_drizzle_xid DRIZZLE_XID;
101
91
 
102
92
enum xa_states {XA_NOTR=0, XA_ACTIVE, XA_IDLE, XA_PREPARED};
103
93
extern const char *xa_state_names[];