~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/xid.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-08 10:16:48 UTC
  • mto: (2226.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2227.
  • Revision ID: olafvdspek@gmail.com-20110308101648-f4mrtebtz5o47tmp
Finish removing XID cache

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#define DRIZZLE_XID_OFFSET (DRIZZLE_XID_PREFIX_LEN+sizeof(server_id))
43
43
#define DRIZZLE_XID_GTRID_LEN (DRIZZLE_XID_OFFSET+sizeof(my_xid))
44
44
 
45
 
class XID 
 
45
class XID
46
46
{
47
47
public:
48
48
  long formatID;
80
80
 
81
81
*/
82
82
 
83
 
class DrizzleXid 
 
83
class DrizzleXid
84
84
{
85
85
public:
86
86
  long formatID;
104
104
#define MIN_XID_LIST_SIZE  128
105
105
#define MAX_XID_LIST_SIZE  (1024*128)
106
106
 
107
 
class XID_STATE 
 
107
class XID_STATE
108
108
{
109
109
public:
110
110
  XID_STATE() :
117
117
  bool in_session;
118
118
};
119
119
 
120
 
bool xid_cache_init();
121
 
void xid_cache_free();
122
 
void xid_cache_insert(XID *xid, xa_states xa_state);
123
 
bool xid_cache_insert(XID_STATE *xid_state);
124
 
void xid_cache_delete(XID_STATE *xid_state);
125
 
 
126
120
} /* namespace drizzled */
127
121
 
128
122
#endif /* DRIZZLED_XID_H */