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