23#ifndef HOLD_TRANSACTIONS_INCLUDE
24#define HOLD_TRANSACTIONS_INCLUDE
Class that contains the logic to hold transactions when group_replication_consistency is set to BEFOR...
Definition: hold_transactions.h:35
mysql_cond_t primary_promotion_policy_condition
Definition: hold_transactions.h:82
int wait_until_primary_failover_complete(ulong hold_timeout)
Method to wait for a primary failover to be complete.
Definition: hold_transactions.cc:62
void disable()
Method to resume transactions on hold, primary election ended.
Definition: hold_transactions.cc:51
bool applying_backlog
is plugin currently applying backlog
Definition: hold_transactions.h:78
mysql_mutex_t primary_promotion_policy_mutex
protect and notify changes on applying_backlog
Definition: hold_transactions.h:81
~Hold_transactions()
Class destructor for hold transaction logic.
Definition: hold_transactions.cc:36
bool is_thread_killed()
Method to verify if thread is killed.
Definition: hold_transactions.h:73
void enable()
Method to enable the hold of transactions when a primary election is occurring.
Definition: hold_transactions.cc:41
Hold_transactions()
Class constructor for hold transaction logic.
Definition: hold_transactions.cc:27
int is_killed() const final
Has the owner thread been killed?
Definition: sql_class.h:3019
thread_local THD * current_thd
Definition: current_thd.cc:25
Some integer typedefs for easier portability.
An instrumented cond structure.
Definition: mysql_cond_bits.h:49
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:49