mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-main
into a88-113-38-195.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-marvel
This commit is contained in:
@@ -1422,6 +1422,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv,
|
||||
#endif
|
||||
case ';':
|
||||
name.str[name.length]= '\0';
|
||||
pthread_mutex_lock(&LOCK_plugin);
|
||||
if (str != &dl) // load all plugins in named module
|
||||
{
|
||||
dl= name;
|
||||
@@ -1445,6 +1446,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv,
|
||||
if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG))
|
||||
goto error;
|
||||
}
|
||||
pthread_mutex_unlock(&LOCK_plugin);
|
||||
name.length= dl.length= 0;
|
||||
dl.str= NULL; name.str= p= buffer;
|
||||
str= &name;
|
||||
@@ -1464,6 +1466,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv,
|
||||
}
|
||||
DBUG_RETURN(FALSE);
|
||||
error:
|
||||
pthread_mutex_unlock(&LOCK_plugin);
|
||||
sql_print_error("Couldn't load plugin named '%s' with soname '%s'.",
|
||||
name.str, dl.str);
|
||||
DBUG_RETURN(TRUE);
|
||||
|
Reference in New Issue
Block a user