MySQL 9.0.0
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 "mysql/components/services/bits/psi_mutex_bits.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/my_loglevel.h"
#include "mysql/utils/enumeration_utils.h"
#include <unistd.h>
#include <algorithm>
#include <list>
#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/binlog/event/control_events.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/strings/int2str.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"

Namespaces

namespace  anonymous_namespace{rpl_gtid_set.cc}
 

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...
 
void anonymous_namespace{rpl_gtid_set.cc}::encode_nsids_format (uchar *buf, uint64_t n_sids, Gtid_format gtid_format)
 
std::tuple< mysql::utils::Return_status, uint64_t, Gtid_format > anonymous_namespace{rpl_gtid_set.cc}::decode_nsids_format (const uchar *buf)
 
enum_return_status anonymous_namespace{rpl_gtid_set.cc}::report_gtid_encoding_error ()
 

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