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.
This commit is contained in:
Marko Mäkelä 2018-08-28 13:18:31 +03:00
parent 58389c71c2
commit 68466bb485

View file

@ -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();