![]() |
MySQL 8.0.43
Source Code Documentation
|
#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 |
| #define MAX_NEW_CHUNK_ALLOCATE_TRIES 10 |
| int format_gno | ( | char * | s, |
| rpl_gno | gno | ||
| ) |
Formats a GNO as a string.
| s | The buffer. |
| gno | The GNO. |
|
static |
Returns the length that the given rpl_sidno (64 bit integer) would have, if it was encoded as a string.
| rpl_gno parse_gno | ( | const char ** | s | ) |
Parse a GNO from a string.
| s | Pointer to the string. *s will advance to the end of the parsed GNO, if a correct GNO is found. |
| GNO | if a correct GNO (i.e., 0 or positive number) was found. |
| -1 | otherwise. |
| PSI_memory_key key_memory_Gtid_set_Interval_chunk |
| PSI_memory_key key_memory_Gtid_set_to_string |