summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2018-12-19 17:08:51 +1100
committerSergey Vojtovich <svoj@mariadb.org>2019-02-24 10:47:15 -0500
commit31b65d3dd211826b194a9a2e6894816ccd05b707 (patch)
treecb60117cae8c44c69fadcee85d3cb50701e55fc3 /sql/sql_base.h
parent6471c156f1b406973f2455bcf333f1b4bcf1198b (diff)
downloadmariadb-git-31b65d3dd211826b194a9a2e6894816ccd05b707.tar.gz
stop covering_keys from being set to the same thing twice
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index 2b245217bce..7bcbc5d7a23 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -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,