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:
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user