#include <handler.h>
Public Member Functions | |
| xid_t () | |
| bool | eq (struct xid_t *xid) |
| bool | eq (long g, long b, const char *d) |
| void | set (struct xid_t *xid) |
| void | set (long f, const char *g, long gl, const char *b, long bl) |
| void | set (ulonglong xid) |
| void | set (long g, long b, const char *d) |
| bool | is_null () |
| void | null () |
| my_xid | quick_get_my_xid () |
| my_xid | get_my_xid () |
| uint | length () |
| byte * | key () |
| uint | key_length () |
Public Attributes | |
| long | formatID |
| long | gtrid_length |
| long | bqual_length |
| char | data [XIDDATASIZE] |
Definition at line 321 of file handler.h.
| xid_t::xid_t | ( | ) | [inline] |
| bool xid_t::eq | ( | long | g, | |
| long | b, | |||
| const char * | d | |||
| ) | [inline] |
Definition at line 330 of file handler.h.
References bqual_length, data, gtrid_length, and memcmp().
00331 { return g == gtrid_length && b == bqual_length && !memcmp(d, data, g+b); }
Here is the call graph for this function:

Definition at line 328 of file handler.h.
References bqual_length, data, and gtrid_length.
00329 { return eq(xid->gtrid_length, xid->bqual_length, xid->data); }
| my_xid xid_t::get_my_xid | ( | ) | [inline] |
Definition at line 365 of file handler.h.
References bqual_length, data, gtrid_length, memcmp(), MYSQL_XID_GTRID_LEN, MYSQL_XID_PREFIX, MYSQL_XID_PREFIX_LEN, quick_get_my_xid(), and server_id.
00366 { 00367 return gtrid_length == MYSQL_XID_GTRID_LEN && bqual_length == 0 && 00368 !memcmp(data+MYSQL_XID_PREFIX_LEN, &server_id, sizeof(server_id)) && 00369 !memcmp(data, MYSQL_XID_PREFIX, MYSQL_XID_PREFIX_LEN) ? 00370 quick_get_my_xid() : 0; 00371 }
Here is the call graph for this function:

| bool xid_t::is_null | ( | ) | [inline] |
| byte* xid_t::key | ( | ) | [inline] |
Definition at line 377 of file handler.h.
References gtrid_length.
Referenced by xid_cache_insert(), and xid_cache_search().
00378 { 00379 return (byte *)>rid_length; 00380 }
Here is the caller graph for this function:

| uint xid_t::key_length | ( | ) | [inline] |
Definition at line 381 of file handler.h.
References bqual_length, and gtrid_length.
Referenced by xid_cache_insert(), and xid_cache_search().
00382 { 00383 return sizeof(gtrid_length)+sizeof(bqual_length)+gtrid_length+bqual_length; 00384 }
Here is the caller graph for this function:

| uint xid_t::length | ( | ) | [inline] |
Definition at line 372 of file handler.h.
References bqual_length, formatID, and gtrid_length.
Referenced by set().
00373 { 00374 return sizeof(formatID)+sizeof(gtrid_length)+sizeof(bqual_length)+ 00375 gtrid_length+bqual_length; 00376 }
Here is the caller graph for this function:

| void xid_t::null | ( | ) | [inline] |
| my_xid xid_t::quick_get_my_xid | ( | ) | [inline] |
Definition at line 359 of file handler.h.
References data, memcpy, and MYSQL_XID_OFFSET.
Referenced by get_my_xid().
00360 { 00361 my_xid tmp; 00362 memcpy(&tmp, data+MYSQL_XID_OFFSET, sizeof(tmp)); 00363 return tmp; 00364 }
Here is the caller graph for this function:

| void xid_t::set | ( | long | g, | |
| long | b, | |||
| const char * | d | |||
| ) | [inline] |
Definition at line 350 of file handler.h.
References bqual_length, data, formatID, gtrid_length, and memcpy.
00351 { 00352 formatID= 1; 00353 gtrid_length= g; 00354 bqual_length= b; 00355 memcpy(data, d, g+b); 00356 }
| void xid_t::set | ( | ulonglong | xid | ) | [inline] |
Definition at line 340 of file handler.h.
References data, formatID, gtrid_length, memcpy, MYSQL_XID_GTRID_LEN, MYSQL_XID_OFFSET, MYSQL_XID_PREFIX, MYSQL_XID_PREFIX_LEN, server_id, and set().
00341 { 00342 my_xid tmp; 00343 formatID= 1; 00344 set(MYSQL_XID_PREFIX_LEN, 0, MYSQL_XID_PREFIX); 00345 memcpy(data+MYSQL_XID_PREFIX_LEN, &server_id, sizeof(server_id)); 00346 tmp= xid; 00347 memcpy(data+MYSQL_XID_OFFSET, &tmp, sizeof(tmp)); 00348 gtrid_length=MYSQL_XID_GTRID_LEN; 00349 }
Here is the call graph for this function:

| void xid_t::set | ( | long | f, | |
| const char * | g, | |||
| long | gl, | |||
| const char * | b, | |||
| long | bl | |||
| ) | [inline] |
Definition at line 334 of file handler.h.
References bqual_length, data, formatID, gtrid_length, and memcpy.
00335 { 00336 formatID= f; 00337 memcpy(data, g, gtrid_length= gl); 00338 memcpy(data+gl, b, bqual_length= bl); 00339 }
| void xid_t::set | ( | struct xid_t * | xid | ) | [inline] |
| long xid_t::bqual_length |
Definition at line 324 of file handler.h.
Referenced by eq(), get_my_xid(), key_length(), length(), set(), trx_get_trx_by_xid(), trx_undo_read_xid(), trx_undo_write_xid(), and xid_to_str().
| char xid_t::data |
Definition at line 325 of file handler.h.
Referenced by eq(), get_my_xid(), quick_get_my_xid(), set(), trx_get_trx_by_xid(), trx_undo_read_xid(), trx_undo_write_xid(), and xid_to_str().
| long xid_t::formatID |
Definition at line 322 of file handler.h.
Referenced by is_null(), length(), null(), set(), trx_create(), trx_undo_read_xid(), and trx_undo_write_xid().
| long xid_t::gtrid_length |
Definition at line 323 of file handler.h.
Referenced by eq(), get_my_xid(), key(), key_length(), length(), set(), trx_get_trx_by_xid(), trx_undo_read_xid(), trx_undo_write_xid(), and xid_to_str().
1.4.7

