@@ -108,10 +108,9 @@ static bool check_file_extension(const String_type &extn)
108108 will be created from scratch with other dictionary tables. Data from
109109 5.7 stats table will be inserted in new created stats table
110110 via INSERT...SELECT statement.
111-
112- @param[in] thd Thread handle.
113111*/
114- void rename_stats_tables (THD *thd)
112+
113+ static void rename_stats_tables ()
115114{
116115 /*
117116 Rename mysql/innodb_index_stats.ibd and mysql/innodb_table_stats.ibd.
@@ -393,7 +392,8 @@ void rename_back_stats_tables(THD *thd)
393392/* *
394393 Drop all .SDI files created during upgrade.
395394*/
396- void drop_sdi_files (THD *thd)
395+
396+ static void drop_sdi_files ()
397397{
398398 uint i, j;
399399 // Iterate in data directory and delete all .SDI files
@@ -745,7 +745,7 @@ bool terminate(THD *thd)
745745 rename_back_stats_tables (thd);
746746
747747 // Drop SDI files.
748- drop_sdi_files (thd );
748+ drop_sdi_files ();
749749
750750 return false ;
751751}
@@ -756,14 +756,13 @@ bool terminate(THD *thd)
756756
757757 @param[in] thd Thread Handle
758758 @param[in] plugin Handlerton Plugin
759- @param[in] unused unused parameter list
760759
761760 @retval false ON SUCCESS
762761 @retval true ON FAILURE
763762*/
764763static bool ha_migrate_tablespaces (THD *thd,
765764 plugin_ref plugin,
766- void *unused )
765+ void * )
767766{
768767 handlerton *hton= plugin_data<handlerton*>(plugin);
769768
@@ -873,15 +872,13 @@ static bool restart_dictionary(THD *thd)
873872
874873 @param[in] thd Thread Handle
875874 @param[in] plugin Handlerton Plugin
876- @param[in] unused unused parameter list
877-
878875
879876 @retval false ON SUCCESS
880877 @retval true ON FAILURE
881878*/
882879static bool upgrade_logs (THD *thd,
883- plugin_ref plugin,
884- void *unused )
880+ plugin_ref plugin,
881+ void * )
885882{
886883 handlerton *hton= plugin_data<handlerton*>(plugin);
887884
@@ -905,7 +902,7 @@ static bool upgrade_logs(THD *thd,
905902static bool ha_upgrade_engine_logs (THD *thd)
906903{
907904 if (plugin_foreach (thd, upgrade_logs,
908- MYSQL_STORAGE_ENGINE_PLUGIN, 0 ))
905+ MYSQL_STORAGE_ENGINE_PLUGIN, 0 ))
909906 return true ;
910907
911908 return false ;
@@ -1186,7 +1183,7 @@ bool do_pre_checks_and_initialize_dd(THD *thd)
11861183 sql_print_information (" Created Data Dictionary for upgrade" );
11871184
11881185 // Rename .ibd files for innodb stats tables
1189- rename_stats_tables (thd );
1186+ rename_stats_tables ();
11901187
11911188 // Mark opt_initiazlize false after creating dictionary tables.
11921189 opt_initialize= false ;
0 commit comments