MySQL 8.0.39
Source Code Documentation
rpl_gtid_set.cc File Reference
#include "my_config.h"
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "my_loglevel.h"
#include "mysql/components/services/bits/psi_mutex_bits.h"
#include "mysql/components/services/log_builtins.h"
#include <unistd.h>
#include <algorithm>
#include <list>
#include "libbinlogevents/include/control_events.h"
#include "m_string.h"
#include "my_byteorder.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_stacktrace.h"
#include "my_sys.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/service_mysql_alloc.h"
#include "prealloced_array.h"
#include "sql/rpl_gtid.h"
#include "sql/sql_const.h"
#include "sql/thr_malloc.h"
#include "mysql/psi/psi_memory.h"
#include "mysqld_error.h"
#include "sql/log.h"

Macros

#define MAX_NEW_CHUNK_ALLOCATE_TRIES   10
 

Functions

rpl_gno parse_gno (const char **s)
 Parse a GNO from a string. More...
 
int format_gno (char *s, rpl_gno gno)
 Formats a GNO as a string. More...
 
static size_t get_string_length (rpl_gno gno)
 Returns the length that the given rpl_sidno (64 bit integer) would have, if it was encoded as a string. More...
 

Variables

PSI_memory_key key_memory_Gtid_set_to_string
 
PSI_memory_key key_memory_Gtid_set_Interval_chunk
 

Macro Definition Documentation

◆ MAX_NEW_CHUNK_ALLOCATE_TRIES

#define MAX_NEW_CHUNK_ALLOCATE_TRIES   10

Function Documentation

◆ format_gno()

int format_gno ( char *  s,
rpl_gno  gno 
)

Formats a GNO as a string.

Parameters
sThe buffer.
gnoThe GNO.
Returns
Length of the generated string.

◆ get_string_length()

static size_t get_string_length ( rpl_gno  gno)
static

Returns the length that the given rpl_sidno (64 bit integer) would have, if it was encoded as a string.

◆ parse_gno()

rpl_gno parse_gno ( const char **  s)

Parse a GNO from a string.

Parameters
sPointer to the string. *s will advance to the end of the parsed GNO, if a correct GNO is found.
Return values
GNOif a correct GNO (i.e., 0 or positive number) was found.
-1otherwise.

Variable Documentation

◆ key_memory_Gtid_set_Interval_chunk

PSI_memory_key key_memory_Gtid_set_Interval_chunk

◆ key_memory_Gtid_set_to_string

PSI_memory_key key_memory_Gtid_set_to_string