Skip to content
Permalink
Browse files
innobase_init(): Remove an unnecessary condition
Because innodb_file_per_table can be enabled at runtime after it
was disabled at startup, it is better to always register the same
innobase_hton->tablefile_extensions. Besides,
innodb_file_per_table=OFF does not prevent loading tables that may
have been created earlier with the .ibd file extension.
  • Loading branch information
dr-m committed Sep 7, 2018
1 parent 58389c7 commit 68466bb
Showing 1 changed file with 1 addition and 4 deletions.
@@ -3810,10 +3810,7 @@ innobase_init(
innobase_hton->fake_trx_id=wsrep_fake_trx_id;
#endif /* WITH_WSREP */

if (srv_file_per_table) {
innobase_hton->tablefile_extensions = ha_innobase_exts;
}

innobase_hton->tablefile_extensions = ha_innobase_exts;
innobase_hton->table_options = innodb_table_option_list;

innodb_remember_check_sysvar_funcs();

0 comments on commit 68466bb

Please sign in to comment.