MySQL 8.4.2
Source Code Documentation
|
Class that aggregates important information about already certified gtid. More...
#include <certified_gtid.h>
Public Member Functions | |
Certified_gtid (const Gtid &server_gtid, const Gtid &group_gtid, bool is_gtid_specified, bool is_local, const Certification_result &cert_result=Certification_result::negative) | |
Constructs Certified_gtid object. More... | |
Certified_gtid (bool is_gtid_specified, bool is_local) | |
Constructor, sets default gtids. More... | |
Certified_gtid (const Certified_gtid &src)=default | |
Copying constructor. More... | |
Certified_gtid & | operator= (const Certified_gtid &src)=default |
Assignment operator. More... | |
const Gtid & | get_server_gtid () const |
Returns server representation of the GTID (global used in binlog) More... | |
const Gtid & | get_group_gtid () const |
Accesses Group representation of the GTID. More... | |
const Certification_result & | get_cert_result () const |
Certification result accessor. More... | |
bool | is_local () const |
Checks whether transaction originates from this server. More... | |
bool | is_specified_gtid () const |
Returns true in case certified GTID was a specified GTID. More... | |
Private Attributes | |
Gtid | m_server_gtid |
Global representation of the GTID. More... | |
Gtid | m_group_gtid |
group representation gtid the way gtid is seen by the group More... | |
bool | m_is_local = true |
Indication whether this is a local GTID. More... | |
bool | m_is_gtid_specified = false |
True if GTID was specified before certification. More... | |
Certification_result | m_cert = Certification_result::negative |
Certification result obtained from the certify function. More... | |
Class that aggregates important information about already certified gtid.
GTID consists of TSID and transaction number. Due to the fact that TSID is represented internally by the number relative to the used sidno map, there are as many GTID representations as maps used (snapshot map / global server map used in TC / group sid map...) Certified GTID provides information about server representation of the GTID (used globally in the TC) and group representation of the GTID (group gtid). Other information used in the code and aggregated inside of this class is: type of the certified GTID, certification result (negative/positive/negative-error) and information whether this GTID is local to the current server performing certification
gr::Certified_gtid::Certified_gtid | ( | const Gtid & | server_gtid, |
const Gtid & | group_gtid, | ||
bool | is_gtid_specified, | ||
bool | is_local, | ||
const Certification_result & | cert_result = Certification_result::negative |
||
) |
Constructs Certified_gtid object.
server_gtid | GTID as seen by server (global) |
group_gtid | GTID as seen by group (local to group) |
is_gtid_specified | True if GTID is specified |
is_local | pass true if transaction originates from this server |
cert_result | Obtained certification result for transaction |
gr::Certified_gtid::Certified_gtid | ( | bool | is_gtid_specified, |
bool | is_local | ||
) |
Constructor, sets default gtids.
is_gtid_specified | True if GTID is specified |
is_local | pass true if transaction originates from this server |
|
default |
Copying constructor.
src | Pattern to be copied from |
const Certification_result & gr::Certified_gtid::get_cert_result | ( | ) | const |
Certification result accessor.
const Gtid & gr::Certified_gtid::get_group_gtid | ( | ) | const |
Accesses Group representation of the GTID.
const Gtid & gr::Certified_gtid::get_server_gtid | ( | ) | const |
Returns server representation of the GTID (global used in binlog)
bool gr::Certified_gtid::is_local | ( | ) | const |
Checks whether transaction originates from this server.
bool gr::Certified_gtid::is_specified_gtid | ( | ) | const |
Returns true in case certified GTID was a specified GTID.
|
default |
Assignment operator.
src | Pattern to be copied from |
|
private |
Certification result obtained from the certify function.
|
private |
group representation gtid the way gtid is seen by the group
|
private |
True if GTID was specified before certification.
|
private |
Indication whether this is a local GTID.
|
private |
Global representation of the GTID.