MySQL  8.0.22
Source Code Documentation
rpl_gtid_misc.cc File Reference
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <algorithm>
#include <atomic>
#include "libbinlogevents/include/control_events.h"
#include "m_string.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "my_thread.h"
#include "mysql/psi/mysql_mutex.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"

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_sid_map (rpl_sid sid)
 Return sidno for a given sid, see Sid_map::add_sid() for details. 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_sid_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_sid_map()

rpl_sidno get_sidno_from_global_sid_map ( rpl_sid  sid)

Return sidno for a given sid, see Sid_map::add_sid() 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:57
#define array_elements(A)
Definition: validate_password_imp.cc:45