DB partitioned submode For significance of each method check definition of Mts_submode.
More...
|
| Mts_submode_database () |
|
int | schedule_next_event (Relay_log_info *rli, Log_event *ev) override |
| Does necessary arrangement before scheduling next event. More...
|
|
void | attach_temp_tables (THD *thd, const Relay_log_info *rli, Query_log_event *ev) override |
| Logic to attach temporary tables. More...
|
|
void | detach_temp_tables (THD *thd, const Relay_log_info *rli, Query_log_event *ev) override |
| Logic to detach the temporary tables from the worker threads upon event execution. More...
|
|
Slave_worker * | get_least_occupied_worker (Relay_log_info *, Slave_worker_array *ws, Log_event *) override |
| Logic to get least occupied worker when the sql mts_submode= database. More...
|
|
| ~Mts_submode_database () override=default |
|
int | wait_for_workers_to_finish (Relay_log_info *rli, Slave_worker *ignore=nullptr) override |
| Function is called by Coordinator when it identified an event requiring sequential execution. More...
|
|
bool | set_multi_threaded_applier_context (const Relay_log_info &rli, Log_event &ev) override |
| Sets additional context before the event is set to execute. More...
|
|
| Mts_submode ()=default |
|
enum_mts_parallel_type | get_type () |
|
virtual void | indicate_start_of_new_file () |
| indicates the start of new file, which may e.g. More...
|
|
virtual | ~Mts_submode ()=default |
|
DB partitioned submode For significance of each method check definition of Mts_submode.
Function is called by Coordinator when it identified an event requiring sequential execution.
Creating sequential context for the event includes waiting for the assigned to Workers tasks to be completed and their resources such as temporary tables be returned to Coordinator's repository. In case all workers are waited Coordinator changes its group status.
- Parameters
-
rli | Relay_log_info instance of Coordinator |
ignore | Optional Worker instance pointer if the sequential context is established due for the ignore Worker. Its resources are to be retained. |
- Note
- Resources that are not occupied by Workers such as a list of temporary tables held in unused (zero-usage) records of APH are relocated to the Coordinator placeholder.
- Returns
- non-negative number of released by Workers partitions (one partition by one Worker can count multiple times)
or -1 to indicate there has been a failure on a not-ignored Worker as indicated by its running_status so synchronization can't succeed.
Implements Mts_submode.