maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #00912
[Branch ~maria-captains/maria/5.1] Rev 2730: Fix that thd->query_plan_flags was not initialised prior to executing non-query commands
------------------------------------------------------------
revno: 2730
committer: knielsen@xxxxxxxxxxxxxxx
branch nick: work
timestamp: Mon 2009-09-07 15:13:58 +0200
message:
Fix that thd->query_plan_flags was not initialised prior to executing non-query commands
(also fixes a Valgrind warning in Buildbot).
modified:
sql/sql_parse.cc
--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1
Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'sql/sql_parse.cc'
--- sql/sql_parse.cc 2009-09-03 14:05:38 +0000
+++ sql/sql_parse.cc 2009-09-07 13:13:58 +0000
@@ -975,6 +975,7 @@
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));