Commit 7221b9ef authored by Kentoku SHIBA's avatar Kentoku SHIBA Committed by GitHub

MDEV-20179 Server hangs on shutdown during installation of Spider (#1367)

parent ccaaa3d2
......@@ -10039,6 +10039,8 @@ void *spider_table_bg_sts_action(
}
++i;
}
thd->mysys_var->current_cond = &thread->cond;
thd->mysys_var->current_mutex = &thread->mutex;
DBUG_PRINT("info",("spider first_free_wait=%s",
thread->first_free_wait ? "TRUE" : "FALSE"));
if (!thread->first_free_wait && !thd->killed)
......@@ -10067,6 +10069,8 @@ void *spider_table_bg_sts_action(
}
++i;
}
thd->mysys_var->current_cond = &thread->cond;
thd->mysys_var->current_mutex = &thread->mutex;
thd->client_capabilities -= CLIENT_MULTI_RESULTS;
reenable_binlog(thd);
thread->init_command = FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment