MySQL 9.0.0
Source Code Documentation
rpl_gtid_misc.cc File Reference
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <algorithm>
#include <atomic>
#include "m_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "my_thread.h"
#include "mysql/binlog/event/control_events.h"
#include "mysql/psi/mysql_mutex.h"
#include "nulls.h"
#include "sql/rpl_gtid.h"
#include "typelib.h"
#include "mysql/thread_type.h"
#include "mysqld_error.h"
#include "sql/binlog.h"
#include "sql/current_thd.h"
#include "sql/rpl_msr.h"
#include "sql/sql_class.h"
#include "sql/sql_error.h"
#include "storage/perfschema/pfs_instr_class.h"
#include "sql/log.h"

Functions

enum_gtid_consistency_mode get_gtid_consistency_mode ()
 Return the current value of ENFORCE_GTID_CONSISTENCY. More...
 
void check_return_status (enum_return_status status, const char *action, const char *status_name, int allow_unreported)
 
rpl_sidno get_sidno_from_global_tsid_map (const Tsid &tsid)
 Return sidno for a given tsid, see Tsid_map::add_tsid() for details. More...
 
const Tsidget_tsid_from_global_tsid_map (rpl_sidno sidno)
 Return Tsid for a given sidno on the global_tsid_map. More...
 
rpl_gno get_last_executed_gno (rpl_sidno sidno)
 Return last gno for a given sidno, see Gtid_state::get_last_executed_gno() for details. More...
 

Variables

ulong _gtid_consistency_mode
 Current value for ENFORCE_GTID_CONSISTENCY. More...
 
const char * gtid_consistency_mode_names [] = {"OFF", "ON", "WARN", NullS}
 Strings holding the enumeration values for gtid_consistency_mode_names. More...
 
TYPELIB gtid_consistency_mode_typelib
 

Function Documentation

◆ check_return_status()

void check_return_status ( enum_return_status  status,
const char *  action,
const char *  status_name,
int  allow_unreported 
)

◆ get_gtid_consistency_mode()

enum_gtid_consistency_mode get_gtid_consistency_mode ( )

Return the current value of ENFORCE_GTID_CONSISTENCY.

Caller must hold global_tsid_lock.rdlock.

◆ get_last_executed_gno()

rpl_gno get_last_executed_gno ( rpl_sidno  sidno)

Return last gno for a given sidno, see Gtid_state::get_last_executed_gno() for details.

◆ get_sidno_from_global_tsid_map()

rpl_sidno get_sidno_from_global_tsid_map ( const Tsid tsid)

Return sidno for a given tsid, see Tsid_map::add_tsid() for details.

Return sidno for a given tsid, see Tsid_map::add_sid() for details.

◆ get_tsid_from_global_tsid_map()

const Tsid & get_tsid_from_global_tsid_map ( rpl_sidno  sidno)

Return Tsid for a given sidno on the global_tsid_map.

See Tsid_map::sidno_to_tsid() for details.

Variable Documentation

◆ _gtid_consistency_mode

ulong _gtid_consistency_mode

Current value for ENFORCE_GTID_CONSISTENCY.

Don't use this directly; use get_gtid_consistency_mode.

◆ gtid_consistency_mode_names

const char* gtid_consistency_mode_names[] = {"OFF", "ON", "WARN", NullS}

Strings holding the enumeration values for gtid_consistency_mode_names.

Use get_gtid_consistency_mode_string instead of accessing this directly.

◆ gtid_consistency_mode_typelib

TYPELIB gtid_consistency_mode_typelib
Initial value:
= {
const char * gtid_consistency_mode_names[]
Strings holding the enumeration values for gtid_consistency_mode_names.
Definition: rpl_gtid_misc.cc:64
#define array_elements(A)
Definition: validate_password_imp.cc:48