diff options
author | monty@mysql.com <> | 2006-03-29 14:27:36 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2006-03-29 14:27:36 +0300 |
commit | 1994ed49ecf09b9de26167a850915ef3de2a4ce6 (patch) | |
tree | 4d8a2c78f1c611f41d2ea762390198c528239c80 /sql/sql_plugin.cc | |
parent | 8cb3cf2382e9c8a3afb5d03ec4199e1ac4528bde (diff) | |
download | mariadb-git-1994ed49ecf09b9de26167a850915ef3de2a4ce6.tar.gz |
Fixed compiler and valgrind warnings
Added missing DBUG_xxx_RETURN statements
Fixed some usage of not initialized variables (as found by valgrind)
Ensure that we don't remove locked tables used as name locks from open table cache until unlock_table_names() are called.
This was fixed by having drop_locked_name() returning any table used as a name lock so that we can free it in unlock_table_names()
This will allow Tomas to continue with his work to use namelocks to syncronize things.
Note: valgrind still produces a lot of warnings about using not initialized code and shows memory loss errors when running the ndb tests
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r-- | sql/sql_plugin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 74852716f74..3d42bfea104 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -192,7 +192,8 @@ static st_plugin_dl *plugin_dl_add(LEX_STRING *dl, int report) if (plugin_dl.version != MYSQL_PLUGIN_INTERFACE_VERSION) { - int i, sizeof_st_plugin; + int i; + uint sizeof_st_plugin; struct st_mysql_plugin *old, *cur; char *ptr= (char *)sym; |