1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

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
This commit is contained in:
Sergei Golubchik
2015-11-19 10:17:40 +01:00
parent ab476a8d10
commit 2553f143fd

View File

@@ -260,7 +260,7 @@ ret:
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);