diff options
author | Marko Mäkelä <marko.makela@oracle.com> | 2015-05-26 10:01:12 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-03-17 12:48:50 +0200 |
commit | 97acc4a1c37974cb2a1e3d6d163e107cb038a7a6 (patch) | |
tree | e8f0732924a8a1127334cc9c9e9813088413eb45 /storage/innobase/pars | |
parent | 4e1116b2c6e1b6e0714fb2ed742842f1ee6bfab5 (diff) | |
download | mariadb-git-97acc4a1c37974cb2a1e3d6d163e107cb038a7a6.tar.gz |
MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC
InnoDB defines some functions that are not called at all.
Other functions are called, but only from the same compilation unit.
Remove some function declarations and definitions, and add 'static'
keywords. Some symbols must be kept for separately compiled tools,
such as innochecksum.
Diffstat (limited to 'storage/innobase/pars')
-rw-r--r-- | storage/innobase/pars/pars0opt.cc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/storage/innobase/pars/pars0opt.cc b/storage/innobase/pars/pars0opt.cc index d197332fa3a..f08037d15aa 100644 --- a/storage/innobase/pars/pars0opt.cc +++ b/storage/innobase/pars/pars0opt.cc @@ -1129,6 +1129,15 @@ opt_clust_access( } } +#ifdef UNIV_SQL_DEBUG +/** Print info of a query plan. +@param[in,out] sel_node select node */ +static +void +opt_print_query_plan( + sel_node_t* sel_node); +#endif + /*******************************************************************//** Optimizes a select. Decides which indexes to tables to use. The tables are accessed in the order that they were written to the FROM part in the @@ -1207,13 +1216,13 @@ opt_search_plan( #endif } -#if 1//def UNIV_SQL_DEBUG -/********************************************************************//** -Prints info of a query plan. */ +#ifdef UNIV_SQL_DEBUG +/** Print info of a query plan. +@param[in,out] sel_node select node */ +static void opt_print_query_plan( -/*=================*/ - sel_node_t* sel_node) /*!< in: select node */ + sel_node_t* sel_node) { plan_t* plan; ulint n_fields; |