MySQL 8.0.39
Source Code Documentation
table_events_transactions.cc File Reference

Table EVENTS_TRANSACTIONS_xxx (implementation). More...

Functions

static size_t xid_to_hex (char *buf, size_t buf_len, PSI_xid *xid, size_t offset, size_t length)
 Convert the XID to HEX string prefixed by '0x'. More...
 
static void xid_store (Field *field, PSI_xid *xid, size_t offset, size_t length)
 Store the XID in printable format if possible, otherwise convert to a string of hex digits. More...
 
static void xid_store_bqual (Field *field, PSI_xid *xid)
 
static void xid_store_gtrid (Field *field, PSI_xid *xid)
 

Variables

static const ulong XID_BUFFER_SIZE = XIDDATASIZE * 2 + 2 + 1
 Size of XID converted to null-terminated hex string prefixed with 0x. More...
 

Detailed Description

Table EVENTS_TRANSACTIONS_xxx (implementation).

Function Documentation

◆ xid_store()

static void xid_store ( Field field,
PSI_xid xid,
size_t  offset,
size_t  length 
)
static

Store the XID in printable format if possible, otherwise convert to a string of hex digits.

Parameters
fieldRecord field
xidXID structure
offsetoffset into XID.data[]
lengthnumber of bytes to process

◆ xid_store_bqual()

static void xid_store_bqual ( Field field,
PSI_xid xid 
)
static

◆ xid_store_gtrid()

static void xid_store_gtrid ( Field field,
PSI_xid xid 
)
static

◆ xid_to_hex()

static size_t xid_to_hex ( char *  buf,
size_t  buf_len,
PSI_xid xid,
size_t  offset,
size_t  length 
)
static

Convert the XID to HEX string prefixed by '0x'.

Parameters
[out]bufoutput hex string buffer, null-terminated
buf_lensize of buffer, must be at least XID_BUFFER_SIZE
xidXID structure
offsetoffset into XID.data[]
lengthnumber of bytes to process
Returns
number of bytes in hex string

Variable Documentation

◆ XID_BUFFER_SIZE

const ulong XID_BUFFER_SIZE = XIDDATASIZE * 2 + 2 + 1
static

Size of XID converted to null-terminated hex string prefixed with 0x.