diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-11-19 10:17:40 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-11-19 10:17:40 +0100 |
commit | 2553f143fdeb9068eb02a8fda58750c24071f5ef (patch) | |
tree | f7d4c03fa1ee0b2962cc87cea23ad5e0f11b23dc /plugin | |
parent | ab476a8d107b3e5b591944b2b5eb3a21d6d003a1 (diff) | |
download | mariadb-git-2553f143fdeb9068eb02a8fda58750c24071f5ef.tar.gz |
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
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/feedback/sender_thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/feedback/sender_thread.cc b/plugin/feedback/sender_thread.cc index 415c1f2e3c2..5114fd48726 100644 --- a/plugin/feedback/sender_thread.cc +++ b/plugin/feedback/sender_thread.cc @@ -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); |