1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-8220 Server crashes if started with --enforce-storage-engine option

This commit is contained in:
Sergei Golubchik
2015-06-01 16:33:41 +02:00
parent d602574542
commit 9c41b35b6a
4 changed files with 24 additions and 0 deletions

View File

@ -3107,6 +3107,9 @@ void plugin_thdvar_init(THD *thd)
if (global_system_variables.tmp_table_plugin)
thd->variables.tmp_table_plugin=
intern_plugin_lock(NULL, global_system_variables.tmp_table_plugin);
if (global_system_variables.enforced_table_plugin)
thd->variables.enforced_table_plugin=
intern_plugin_lock(NULL, global_system_variables.enforced_table_plugin);
intern_plugin_unlock(NULL, old_table_plugin);
intern_plugin_unlock(NULL, old_tmp_table_plugin);
intern_plugin_unlock(NULL, old_enforced_table_plugin);