Commit 2553f143 authored by Sergei Golubchik's avatar Sergei Golubchik

fix feedback plugin not to crash in debug builds

feedback was bzero-ing thd->status_vars.memory_used,
but server was asserting the correct value of it
parent ab476a8d
......@@ -260,7 +260,7 @@ static void send_report(const char *when)
the effect of the background thread on SHOW STATUS.
*/
mysql_mutex_lock(&LOCK_thread_count);
bzero(&thd->status_var, sizeof(thd->status_var));
thd->set_status_var_init();
thread_count--;
thd->killed= KILL_CONNECTION;
mysql_cond_broadcast(&COND_thread_count);
......
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