Commit d50e99c9 authored by unknown's avatar unknown

Fix that thd->query_plan_flags was not initialised prior to executing non-query commands

(also fixes a Valgrind warning in Buildbot).
parent be70bfe0
...@@ -975,6 +975,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -975,6 +975,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
the slow log only if opt_log_slow_admin_statements is set. the slow log only if opt_log_slow_admin_statements is set.
*/ */
thd->enable_slow_log= TRUE; thd->enable_slow_log= TRUE;
thd->query_plan_flags= QPLAN_INIT;
thd->lex->sql_command= SQLCOM_END; /* to avoid confusing VIEW detectors */ thd->lex->sql_command= SQLCOM_END; /* to avoid confusing VIEW detectors */
thd->set_time(); thd->set_time();
VOID(pthread_mutex_lock(&LOCK_thread_count)); VOID(pthread_mutex_lock(&LOCK_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