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

(also fixes a Valgrind warning in Buildbot).
This commit is contained in:
unknown 2009-09-07 15:13:58 +02:00
parent be70bfe043
commit d50e99c9f6

View File

@ -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.
*/
thd->enable_slow_log= TRUE;
thd->query_plan_flags= QPLAN_INIT;
thd->lex->sql_command= SQLCOM_END; /* to avoid confusing VIEW detectors */
thd->set_time();
VOID(pthread_mutex_lock(&LOCK_thread_count));