Commit 68466bb4 authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 58389c71
...@@ -3810,10 +3810,7 @@ innobase_init( ...@@ -3810,10 +3810,7 @@ innobase_init(
innobase_hton->fake_trx_id=wsrep_fake_trx_id; innobase_hton->fake_trx_id=wsrep_fake_trx_id;
#endif /* WITH_WSREP */ #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; innobase_hton->table_options = innodb_table_option_list;
innodb_remember_check_sysvar_funcs(); innodb_remember_check_sysvar_funcs();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment