MySQL 8.0.40
Source Code Documentation
binlog Namespace Reference

Namespaces

namespace  monitoring
 

Classes

class  AtomicBgcTicket
 Implements atomic ops on BgcTicket object. More...
 
class  AtomicBgcTicketGuard
 RAII opaque for AtomicBgcTicket (set in use/set used synchronization operations in constructor/destructor) More...
 
class  Bgc_ticket_manager
 Singleton class that manages the grouping of sessions for the Binlog Group Commit (BGC), using a ticketing system. More...
 
class  BgcTicket
 Represents the Binlog Group Commit Ticket - BGC Ticket. More...
 
class  Binlog_recovery
 Recovers from last crashed binlog at server start. More...
 
class  Context
 Global context for binary logging. More...
 
class  Decompressing_event_object_istream
 Stream class that yields Log_event objects from a source. More...
 

Enumerations

enum class  BgcTmOptions { empty = 0 , inc_session_count = 1 }
 Enumeration for passing options to Bgc_ticket_manager operations. More...
 

Functions

static Decompressing_event_object_istream::Status_t binlog_read_error_to_status (Binlog_read_error::Error_type e)
 
std::ostream & operator<< (std::ostream &os, const AtomicBgcTicket &arg)
 
std::ostream & operator<< (std::ostream &os, const BgcTicket &arg)
 
bool operator< (const BgcTicket &lhs, const BgcTicket &rhs)
 
bool operator> (const BgcTicket &lhs, const BgcTicket &rhs)
 
bool operator>= (const BgcTicket &lhs, const BgcTicket &rhs)
 
bool operator== (const BgcTicket &lhs, const BgcTicket &rhs)
 
bool operator!= (const BgcTicket &lhs, const BgcTicket &rhs)
 

Variables

Context global_context
 The global context for binary log related global context. More...
 

Enumeration Type Documentation

◆ BgcTmOptions

enum class binlog::BgcTmOptions
strong

Enumeration for passing options to Bgc_ticket_manager operations.

Enumerator
empty 

No options.

inc_session_count 

While performing some other operation (e.g.

push, pop), atomically increment the related session counter.

Function Documentation

◆ binlog_read_error_to_status()

static Decompressing_event_object_istream::Status_t binlog::binlog_read_error_to_status ( Binlog_read_error::Error_type  e)
static

◆ operator!=()

bool binlog::operator!= ( const BgcTicket lhs,
const BgcTicket rhs 
)

Comparison without (!) first bit

Parameters
[in]lhsLeft hand side BgcTicket argument (const ref)
[in]rhsRight hand side BgcTicket argument (const ref)
Return values
truelhs != rhs
falserhs == lhs

◆ operator<()

bool binlog::operator< ( const BgcTicket lhs,
const BgcTicket rhs 
)
Parameters
[in]lhsLeft hand side BgcTicket argument (const ref)
[in]rhsRight hand side BgcTicket argument (const ref)

◆ operator<<() [1/2]

std::ostream & binlog::operator<< ( std::ostream &  os,
const AtomicBgcTicket arg 
)
Parameters
[in]osReference to stream obj
[in]argConstant reference to AtomicBgcTicket object
Returns
Reference to changed stream obj

◆ operator<<() [2/2]

std::ostream & binlog::operator<< ( std::ostream &  os,
const BgcTicket arg 
)
Parameters
[in]osReference to stream obj
[in]argConstant reference to BgcTicket object
Returns
Reference to changed stream obj

◆ operator==()

bool binlog::operator== ( const BgcTicket lhs,
const BgcTicket rhs 
)

Comparison without (!) first bit, meaning that if some thread locked on lhs or rhs, tickets can still be equal

Parameters
[in]lhsLeft hand side BgcTicket argument (const ref)
[in]rhsRight hand side BgcTicket argument (const ref)
Return values
truelhs == rhs
falserhs != lhs

◆ operator>()

bool binlog::operator> ( const BgcTicket lhs,
const BgcTicket rhs 
)
Parameters
[in]lhsLeft hand side BgcTicket argument (const ref)
[in]rhsRight hand side BgcTicket argument (const ref)
Return values
truelhs > rhs
falserhs <= lhs

◆ operator>=()

bool binlog::operator>= ( const BgcTicket lhs,
const BgcTicket rhs 
)
Parameters
[in]lhsLeft hand side BgcTicket argument (const ref)
[in]rhsRight hand side BgcTicket argument (const ref)
Return values
truelhs >= rhs
false!(rhs >= lhs)

Variable Documentation

◆ global_context

Context binlog::global_context

The global context for binary log related global context.