MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:sanja Date:December 19 2007 8:13am
Subject:bk commit into 5.1 tree (bell:1.2680) BUG#33345
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of bell. When bell does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-12-19 10:13:13+02:00, bell@stripped +1 -0
  Mutex protection added for loading plugins. (BUG#33345)

  sql/sql_plugin.cc@stripped, 2007-12-19 10:13:11+02:00, bell@stripped +3 -0
    Mutex protection added for loading plugins.

diff -Nrup a/sql/sql_plugin.cc b/sql/sql_plugin.cc
--- a/sql/sql_plugin.cc	2007-11-14 15:28:20 +02:00
+++ b/sql/sql_plugin.cc	2007-12-19 10:13:11 +02:00
@@ -1421,6 +1421,7 @@ static bool plugin_load_list(MEM_ROOT *t
 #endif
     case ';':
       name.str[name.length]= '\0';
+      pthread_mutex_lock(&LOCK_plugin);
       if (str != &dl)  // load all plugins in named module
       {
         dl= name;
@@ -1444,6 +1445,7 @@ static bool plugin_load_list(MEM_ROOT *t
         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;
@@ -1463,6 +1465,7 @@ static bool plugin_load_list(MEM_ROOT *t
   }
   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);
Thread
bk commit into 5.1 tree (bell:1.2680) BUG#33345sanja19 Dec