24#ifndef CERTIFICATION_HANDLER_INCLUDE
25#define CERTIFICATION_HANDLER_INCLUDE
70 std::list<std::unique_ptr<View_change_stored_info>>
Definition: certification_handler.h:32
Pipeline_event * transaction_context_pevent
Definition: certification_handler.h:55
int get_role() override
This method returns the handler role.
Definition: certification_handler.cc:737
~Certification_handler() override
Definition: certification_handler.cc:42
Certification_handler()
Definition: certification_handler.cc:35
Certifier * cert_module
Definition: certification_handler.h:48
int handle_transaction_id(Pipeline_event *pevent, Continuation *cont)
This methods handles transaction identifier events, it does two tasks:
Definition: certification_handler.cc:234
std::list< std::unique_ptr< View_change_stored_info > > pending_view_change_events_waiting_for_consistent_transactions
All the VC events pending application due to consistent transactions.
Definition: certification_handler.h:71
void reset_transaction_context()
Reset transaction context.
Definition: certification_handler.cc:198
binlog::BgcTicket::ValueType generate_view_change_bgc_ticket()
Generate a commit order ticket for the View_change transaction.
Definition: certification_handler.cc:715
THD * applier_module_thd
Definition: certification_handler.h:50
int terminate() override
Terminate the execution as defined in the handler implementation.
Definition: certification_handler.cc:55
int get_transaction_context(Pipeline_event *pevent, Transaction_context_log_event **tcle)
Get transaction context set on previous event handler.
Definition: certification_handler.cc:159
int handle_event(Pipeline_event *ev, Continuation *cont) override
Handling of an event as defined in the handler implementation.
Definition: certification_handler.cc:108
int set_certification_info(std::map< std::string, std::string > *cert_info)
int initialize() override
Initialization as defined in the handler implementation.
Definition: certification_handler.cc:48
Certifier_interface * get_certifier()
Definition: certification_handler.cc:739
int handle_transaction_context(Pipeline_event *pevent, Continuation *cont)
This method handles transaction context events by storing them so they can be used on next handler.
Definition: certification_handler.cc:220
int handle_action(Pipeline_action *action) override
Handling of an action as defined in the handler implementation.
Definition: certification_handler.cc:66
int log_view_change_event_in_order(Pipeline_event *view_pevent, Continuation *cont)
Try to log a view change event waiting for local certified transactions to finish.
Definition: certification_handler.cc:644
Data_packet * transaction_context_packet
Definition: certification_handler.h:54
bool is_unique() override
This method identifies the handler as being unique.
Definition: certification_handler.cc:735
rpl_sidno group_sidno
Definition: certification_handler.h:52
int set_transaction_context(Pipeline_event *pevent)
Set transaction context for next event handler.
Definition: certification_handler.cc:126
int inject_transactional_events(Pipeline_event *pevent, Gtid gtid, binlog::BgcTicket::ValueType bgc_ticket, Continuation *cont)
Create a transactional block for the received log event GTID BEGIN EVENT COMMIT.
Definition: certification_handler.cc:544
int extract_certification_info(Pipeline_event *pevent, Continuation *cont)
Definition: certification_handler.cc:503
Definition: certifier.h:174
Definition: certifier.h:195
Class used to wait on the execution of some action.
Definition: pipeline_interfaces.h:462
A wrapper for raw network packets.
Definition: pipeline_interfaces.h:75
Interface for the application of events, them being packets or log events.
Definition: pipeline_interfaces.h:587
A wrapper for pipeline actions.
Definition: pipeline_interfaces.h:557
A wrapper for log events/packets.
Definition: pipeline_interfaces.h:128
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
This is the subclass of Transaction_context_event and Log_event This class encodes the transaction_co...
Definition: log_event.h:4118
std::uint64_t ValueType
Definition: bgc_ticket.h:56
repeated Action action
Definition: replication_group_member_actions.proto:43
int rpl_sidno
Type of SIDNO (source ID number, first component of GTID)
Definition: rpl_gtid.h:96
View change information information stored for delay.
Definition: certification_handler.h:58
View_change_stored_info(Pipeline_event *vc_pevent, Gtid gtid, binlog::BgcTicket::ValueType bgc_ticket)
Definition: certification_handler.h:62
Pipeline_event * view_change_pevent
Definition: certification_handler.h:59
binlog::BgcTicket::ValueType bgc_ticket
Definition: certification_handler.h:61
Gtid view_change_gtid
Definition: certification_handler.h:60
TODO: Move this structure to libbinlogevents/include/control_events.h when we start using C++11.
Definition: rpl_gtid.h:1066