1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Change storage of execution flags from thd->options to thd->lex.options

This commit is contained in:
monty@donna.mysql.com
2000-11-22 04:24:54 +02:00
parent 1ce0e50f4c
commit f4df5cd264
4 changed files with 8 additions and 7 deletions

View File

@ -826,7 +826,8 @@ bool do_command(THD *thd)
if (!thd->user_time)
{
if ((ulong) (thd->start_time - thd->time_after_lock) > long_query_time ||
((thd->options & (OPTION_NO_INDEX_USED | OPTION_NO_GOOD_INDEX_USED)) &&
((thd->lex.options &
(OPTION_NO_INDEX_USED | OPTION_NO_GOOD_INDEX_USED)) &&
(specialflag & SPECIAL_LONG_LOG_FORMAT)))
{
long_query_count++;
@ -855,7 +856,7 @@ mysql_execute_command(void)
{
int res=0;
THD *thd=current_thd;
LEX *lex=current_lex;
LEX *lex= &thd->lex;
TABLE_LIST *tables=(TABLE_LIST*) lex->table_list.first;
DBUG_ENTER("mysql_execute_command");