24#ifndef GROUP_PARTITION_HANDLING_INCLUDE
25#define GROUP_PARTITION_HANDLING_INCLUDE
Definition: group_partition_handling.h:30
bool is_partition_handler_running()
Is the partition handler thread running.
Definition: group_partition_handling.cc:79
thread_state group_partition_thd_state
Group partition thread state.
Definition: group_partition_handling.h:120
my_thread_handle partition_trx_handler_pthd
Definition: group_partition_handling.h:133
int partition_thread_handler()
The thread handler.
Definition: group_partition_handling.cc:183
ulong get_timeout_on_unreachable()
Definition: group_partition_handling.cc:71
bool partition_handling_aborted
Should we abort the process that will kill pending transaction.
Definition: group_partition_handling.h:123
mysql_cond_t run_cond
Definition: group_partition_handling.h:136
void update_timeout_on_unreachable(ulong unreachable_timeout)
Updates the timeout when the member becomes unreachable.
Definition: group_partition_handling.cc:66
ulong timeout_on_unreachable
The number of seconds until the member goes into error state.
Definition: group_partition_handling.h:129
bool member_in_partition
Is member in partition.
Definition: group_partition_handling.h:117
Group_partition_handling(ulong unreachable_timeout)
Definition: group_partition_handling.cc:43
virtual ~Group_partition_handling()
The class destructor.
Definition: group_partition_handling.cc:59
bool is_member_on_partition()
Is the member currently/or was on a partition?
Definition: group_partition_handling.cc:75
bool abort_partition_handler_if_running()
Signals the thread to abort the waiting process.
Definition: group_partition_handling.cc:87
int terminate_partition_handler_thread()
Terminate the partition thread handler.
Definition: group_partition_handling.cc:136
mysql_mutex_t run_lock
Definition: group_partition_handling.h:135
mysql_cond_t trx_termination_aborted_cond
Definition: group_partition_handling.h:138
bool is_partition_handling_terminated()
Definition: group_partition_handling.cc:83
int launch_partition_handler_thread()
Launch the partition thread handler.
Definition: group_partition_handling.cc:103
mysql_mutex_t trx_termination_aborted_lock
Definition: group_partition_handling.h:137
bool partition_handling_terminated
Did the partition handler terminate and killed pending transactions.
Definition: group_partition_handling.h:126
Definition: my_thread_bits.h:52
An instrumented cond structure.
Definition: mysql_cond_bits.h:50
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50
Definition: plugin_utils.h:47