24#ifndef MYSQL_CSA_SERVICE_RESCUE_TASK_H
25#define MYSQL_CSA_SERVICE_RESCUE_TASK_H
48 std::promise<bool> &action_promise,
int job_id);
Definition: rpl_rli.h:208
Rescue task to rollback conflicting transaction.
Definition: rescue_task.h:39
void rollback_trx()
Rolls back transaction attached to RLI.
Definition: rescue_task.cpp:58
std::optional< std::reference_wrapper< std::promise< bool > > > m_action_promise
Promise to synchronize on after operation is done.
Definition: rescue_task.h:65
void operator()()
Perform rescue operation.
Definition: rescue_task.cpp:38
int m_job_id
Job internal identifier.
Definition: rescue_task.h:67
void set_promise()
Sets promise value, e.g. in case when task cannot be executed (stop)
Definition: rescue_task.cpp:50
Rescue_operation_type m_rescue_operation_type
Rescue operation type.
Definition: rescue_task.h:62
Rescue_task()=default
Default constructor, required by synchronized queue.
Relay_log_info * m_rli
RLI attached to the transaction to rescue.
Definition: rescue_task.h:60
Definition: channel.cpp:28
Rescue_operation_type
Types of rescue operations.
Definition: rescue_task.h:34