mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01: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:
parent
d959acbbf8
commit
7372ecc396
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue