diff options
author | unknown <gkodinov/kgeorge@macbook.gmz> | 2008-03-28 17:24:23 +0200 |
---|---|---|
committer | unknown <gkodinov/kgeorge@macbook.gmz> | 2008-03-28 17:24:23 +0200 |
commit | 4ae69fc2b14edab79b841a57fb6acb3c28ca76a1 (patch) | |
tree | e642a4ddeae51dcde60389830ef3b9160de6cad5 /sql/sql_plugin.cc | |
parent | 01a979e8b21b82d0e21292140852a1f6b99d2ac8 (diff) | |
download | mariadb-git-4ae69fc2b14edab79b841a57fb6acb3c28ca76a1.tar.gz |
fixed a hand in 5.1-marvel :
Removed a double release of the mutex on error
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r-- | sql/sql_plugin.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 4735cd569fc..106984823a5 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -1446,8 +1446,6 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv, free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE)); if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG)) - { - pthread_mutex_unlock(&LOCK_plugin); goto error; } } @@ -1459,10 +1457,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv, free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE)); pthread_mutex_lock(&LOCK_plugin); if (plugin_add(tmp_root, &name, &dl, argc, argv, REPORT_TO_LOG)) - { - pthread_mutex_unlock(&LOCK_plugin); goto error; - } } pthread_mutex_unlock(&LOCK_plugin); name.length= dl.length= 0; |