diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2020-06-09 18:07:06 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2020-06-10 02:29:28 +0530 |
commit | 648b54746c2dbad98f3e09609e1217be918286dd (patch) | |
tree | 3abf194a849a7978bf74f83bff9ef8152284b4bf /sql/sql_select.h | |
parent | 70d4e55db94b62aa6cfcecdc25054554e7d44d18 (diff) | |
download | mariadb-git-648b54746c2dbad98f3e09609e1217be918286dd.tar.gz |
MDEV-22399: Remove multiple calls to enable and disable Handler::keyread and perform it after the plan refinement phase is done
Introduce a function to enable keyreads for indexes and use this
function when all the decision of plan refinement phase are done.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 0c832f6d1ff..545db41798c 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1642,7 +1642,6 @@ public: bool flatten_subqueries(); bool optimize_unflattened_subqueries(); bool optimize_constant_subqueries(); - int init_join_caches(); bool make_range_rowid_filters(); bool init_range_rowid_filters(); bool make_sum_func_list(List<Item> &all_fields, List<Item> &send_fields, @@ -1826,6 +1825,7 @@ private: bool add_having_as_table_cond(JOIN_TAB *tab); bool make_aggr_tables_info(); bool add_fields_for_current_rowid(JOIN_TAB *cur, List<Item> *fields); + void init_join_cache_and_keyread(); }; enum enum_with_bush_roots { WITH_BUSH_ROOTS, WITHOUT_BUSH_ROOTS}; |