24#ifndef GR_CERTIFICATION_GTID_GENERATOR_INCLUDED
25#define GR_CERTIFICATION_GTID_GENERATOR_INCLUDED
27#include <unordered_map>
85 std::unordered_map<rpl_sidno, Gtid_generator_for_sidno>
Represents a set of GTIDs.
Definition: rpl_gtid.h:1556
This class is responsible for generating GTIDs in the Certifier.
Definition: gtid_generator.h:47
uint64 m_gtid_assignment_block_size
The group GTID assignment block size.
Definition: gtid_generator.h:89
void initialize(uint64 gtid_assignment_block_size)
This is initialization function that will be called in the certifier.
Definition: gtid_generator.cc:62
std::unordered_map< rpl_sidno, Gtid_generator_for_sidno > m_gtid_generator_for_sidno
GTID bookkeeping for each sidno.
Definition: gtid_generator.h:86
void recompute(const Gtid_set >id_set)
This function recomputes generator state.
Definition: gtid_generator.cc:54
std::pair< rpl_gno, mysql::utils::Return_status > get_next_available_gtid(const char *member_uuid, rpl_sidno sidno, const Gtid_set >id_set)
This method is used to get the next valid GNO for the given sidno, for the transaction originating fr...
Definition: gtid_generator.cc:32
auto get_gtid_assignment_block_size() const
Accesses gtid assignment block size the Gtid_generator was initialized with.
Definition: gtid_generator.h:79
uint64_t uint64
Definition: my_inttypes.h:69
Definition: group_replication_priv.h:44
cs::index::rpl_sidno rpl_sidno
Type of SIDNO (source ID number, first component of GTID)
Definition: rpl_gtid.h:108