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

bugfix: mysqld failed to start if a compiled-in plugin failed to initialize

(--xxx=ON behaving as --xxx=FORCE)
This commit is contained in:
Sergei Golubchik
2012-04-17 20:28:21 +02:00
parent 580eca69ae
commit 1c879717ec
6 changed files with 132 additions and 2 deletions

View File

@ -1587,7 +1587,11 @@ int plugin_init(int *argc, char **argv, int flags)
{
if (plugin_ptr->state == PLUGIN_IS_UNINITIALIZED &&
plugin_initialize(plugin_ptr))
goto err_unlock;
{
if (mandatory)
goto err_unlock;
plugin_ptr->state= PLUGIN_IS_DISABLED;
}
}
/*