Commit 804fb401 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed plugins.feedback_plugin_send failure

Fixed assertion failure introduced along with MDEV-6150 (thd must be unlinked
before calling "delete thd").
parent b97e45f7
...@@ -265,6 +265,7 @@ static void send_report(const char *when) ...@@ -265,6 +265,7 @@ static void send_report(const char *when)
thd->set_status_var_init(); thd->set_status_var_init();
thread_count--; thread_count--;
thd->killed= KILL_CONNECTION; thd->killed= KILL_CONNECTION;
thd->unlink();
mysql_cond_broadcast(&COND_thread_count); mysql_cond_broadcast(&COND_thread_count);
mysql_mutex_unlock(&LOCK_thread_count); mysql_mutex_unlock(&LOCK_thread_count);
delete thd; delete thd;
......
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