mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Restore the THD state correctly in parallel replication
If both do_gco_wait() and do_ftwrl_wait() had to wait, the state was not restored correctly. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
@@ -500,7 +500,8 @@ do_ftwrl_wait(rpl_group_info *rgi,
|
||||
{
|
||||
thd->set_time_for_next_stage();
|
||||
thd->ENTER_COND(&entry->COND_parallel_entry, &entry->LOCK_parallel_entry,
|
||||
&stage_waiting_for_ftwrl, old_stage);
|
||||
&stage_waiting_for_ftwrl,
|
||||
(*did_enter_cond ? nullptr : old_stage));
|
||||
*did_enter_cond= true;
|
||||
do
|
||||
{
|
||||
|
Reference in New Issue
Block a user