24#ifndef GR_CERTIFICATION_CERTIFIED_GTID_INCLUDED
25#define GR_CERTIFICATION_CERTIFIED_GTID_INCLUDED
55 const Gtid &server_gtid,
const Gtid &group_gtid,
bool is_gtid_specified,
Class that aggregates important information about already certified gtid.
Definition: certified_gtid.h:46
const Gtid & get_group_gtid() const
Accesses Group representation of the GTID.
Definition: certified_gtid.cc:46
Gtid m_server_gtid
Global representation of the GTID.
Definition: certified_gtid.h:89
bool m_is_local
Indication whether this is a local GTID.
Definition: certified_gtid.h:93
Gtid m_group_gtid
group representation gtid the way gtid is seen by the group
Definition: certified_gtid.h:90
Certified_gtid(const Certified_gtid &src)=default
Copying constructor.
Certification_result m_cert
Certification result obtained from the certify function.
Definition: certified_gtid.h:97
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.
Definition: certified_gtid.cc:29
bool is_local() const
Checks whether transaction originates from this server.
Definition: certified_gtid.cc:54
const Gtid & get_server_gtid() const
Returns server representation of the GTID (global used in binlog)
Definition: certified_gtid.cc:44
bool is_specified_gtid() const
Returns true in case certified GTID was a specified GTID.
Definition: certified_gtid.cc:52
const Certification_result & get_cert_result() const
Certification result accessor.
Definition: certified_gtid.cc:48
Certified_gtid & operator=(const Certified_gtid &src)=default
Assignment operator.
bool m_is_gtid_specified
True if GTID was specified before certification.
Definition: certified_gtid.h:95
Definition: group_replication_priv.h:44
Certification_result
Represents result of certification function.
Definition: certification_result.h:30
TODO: Move this structure to mysql/binlog/event/control_events.h when we start using C++11.
Definition: rpl_gtid.h:1101