1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

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

This commit is contained in:
unknown
2000-11-22 04:24:54 +02:00
parent b7aecfe7d2
commit 0016d9a393
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");