mirror of
https://github.com/MariaDB/server.git
synced 2025-08-15 22:37:22 +00:00
stop covering_keys from being set to the same thing twice
This commit is contained in:

committed by
Sergey Vojtovich

parent
6471c156f1
commit
31b65d3dd2
@ -352,13 +352,6 @@ inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
|
||||
table->force_index= table_list->force_index;
|
||||
table->force_index_order= table->force_index_group= 0;
|
||||
table->covering_keys= table->s->keys_for_keyread;
|
||||
TABLE_LIST *orig= table_list->select_lex ?
|
||||
table_list->select_lex->master_unit()->derived : 0;
|
||||
if (!orig || !orig->is_merged_derived())
|
||||
{
|
||||
/* Tables merged from derived were set up already.*/
|
||||
table->covering_keys= table->s->keys_for_keyread;
|
||||
}
|
||||
}
|
||||
|
||||
inline TABLE_LIST *find_table_in_global_list(TABLE_LIST *table,
|
||||
|
Reference in New Issue
Block a user