MySQL 8.0.39
Source Code Documentation
fts0priv.ic File Reference

Full text search internal header file. More...

Functions

static int fts_write_object_id (ib_id_t id, char *str)
 Write the table id to the given buffer (including final NUL). More...
 
static bool fts_read_object_id (ib_id_t *id, const char *str)
 
static int fts_trx_table_cmp (const void *p1, const void *p2)
 Compare two fts_trx_table_t instances. More...
 
static int fts_trx_table_id_cmp (const void *p1, const void *p2)
 Compare a table id with a fts_trx_table_t table id. More...
 

Detailed Description

Full text search internal header file.

Created 2011/11/12 Sunny Bains

Function Documentation

◆ fts_read_object_id()

static bool fts_read_object_id ( ib_id_t id,
const char *  str 
)
inlinestatic

◆ fts_trx_table_cmp()

static int fts_trx_table_cmp ( const void *  p1,
const void *  p2 
)
inlinestatic

Compare two fts_trx_table_t instances.

Returns
< 0 if n1 < n2, 0 if n1 == n2, > 0 if n1 > n2
Parameters
p1in: id1
p2in: id2

◆ fts_trx_table_id_cmp()

static int fts_trx_table_id_cmp ( const void *  p1,
const void *  p2 
)
inlinestatic

Compare a table id with a fts_trx_table_t table id.

Returns
< 0 if n1 < n2, 0 if n1 == n2,> 0 if n1 > n2
Parameters
p1in: id1
p2in: id2

◆ fts_write_object_id()

static int fts_write_object_id ( ib_id_t  id,
char *  str 
)
inlinestatic

Write the table id to the given buffer (including final NUL).

Buffer must be at least FTS_AUX_MIN_TABLE_ID_LENGTH bytes long.

Parameters
[in]ida table/index id
[in]strbuffer to write the id to
Returns
number of bytes written