MySQL 8.4.0
Source Code Documentation
rpl_gtid_mode.cc File Reference
#include <algorithm>
#include "binlog.h"
#include "mysqld.h"
#include "nulls.h"
#include "sql/rpl_gtid.h"
#include "sql/rpl_msr.h"

Functions

std::ostream & operator<< (std::ostream &oss, Gtid_mode::value_type const &mode)
 
std::ostream & operator<< (std::ostream &oss, Gtid_mode const &mode)
 Typically, code will print Gtid_mode only after reading and acting on the enum value. More...
 

Variables

Gtid_mode global_gtid_mode
 The one and only instance of Gtid_mode. More...
 

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  oss,
Gtid_mode const &  mode 
)

Typically, code will print Gtid_mode only after reading and acting on the enum value.

Then it is better to print the enum value than to read the shared resource again. Hence we enable this only in debug mode, since it makes more sense to just get the string when doing a debug printout.

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  oss,
Gtid_mode::value_type const &  mode 
)

Variable Documentation

◆ global_gtid_mode

Gtid_mode global_gtid_mode

The one and only instance of Gtid_mode.

All access to @global.gtid_mode should use this object.