mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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
This commit is contained in:
@ -5037,6 +5037,8 @@ static int handle_grant_struct(uint struct_no, bool drop,
|
||||
LINT_INIT(acl_user);
|
||||
LINT_INIT(acl_db);
|
||||
LINT_INIT(grant_name);
|
||||
LINT_INIT(user);
|
||||
LINT_INIT(host);
|
||||
|
||||
/* Get the number of elements in the in-memory structure. */
|
||||
switch (struct_no) {
|
||||
@ -5109,8 +5111,7 @@ static int handle_grant_struct(uint struct_no, bool drop,
|
||||
result= 1; /* At least one element found. */
|
||||
if ( drop )
|
||||
{
|
||||
switch ( struct_no )
|
||||
{
|
||||
switch ( struct_no ) {
|
||||
case 0:
|
||||
delete_dynamic_element(&acl_users, idx);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user