@@ -1069,7 +1069,7 @@ static void init_check_host(void)
1069
1069
else if (!hash_search (&acl_check_hosts,(byte*) &acl_user->host ,
1070
1070
(uint ) strlen (acl_user->host .hostname )))
1071
1071
{
1072
- if (hash_insert (&acl_check_hosts,(byte*) acl_user))
1072
+ if (my_hash_insert (&acl_check_hosts,(byte*) acl_user))
1073
1073
{ // End of memory
1074
1074
allow_all_hosts=1 ; // Should never happen
1075
1075
DBUG_VOID_RETURN;
@@ -1782,7 +1782,7 @@ class GRANT_TABLE :public Sql_alloc
1782
1782
privs = cols = 0 ; /* purecov: deadcode */
1783
1783
return ; /* purecov: deadcode */
1784
1784
}
1785
- hash_insert (&hash_columns, (byte *) mem_check);
1785
+ my_hash_insert (&hash_columns, (byte *) mem_check);
1786
1786
} while (!col_privs->file ->index_next (col_privs->record [0 ]) &&
1787
1787
!key_cmp (col_privs,key,0 ,key_len));
1788
1788
}
@@ -1944,7 +1944,7 @@ static int replace_column_table(GRANT_TABLE *g_t,
1944
1944
goto end; /* purecov: inspected */
1945
1945
}
1946
1946
GRANT_COLUMN *grant_column = new GRANT_COLUMN (xx->column ,privileges);
1947
- hash_insert (&g_t ->hash_columns ,(byte*) grant_column);
1947
+ my_hash_insert (&g_t ->hash_columns ,(byte*) grant_column);
1948
1948
}
1949
1949
}
1950
1950
table->file ->index_end ();
@@ -2295,7 +2295,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list,
2295
2295
result= -1 ; /* purecov: deadcode */
2296
2296
continue ; /* purecov: deadcode */
2297
2297
}
2298
- hash_insert (&column_priv_hash,(byte*) grant_table);
2298
+ my_hash_insert (&column_priv_hash,(byte*) grant_table);
2299
2299
}
2300
2300
2301
2301
/* If revoke_grant, calculate the new column privilege for tables_priv */
@@ -2538,7 +2538,7 @@ my_bool grant_init(THD *org_thd)
2538
2538
{
2539
2539
GRANT_TABLE *mem_check;
2540
2540
if (!(mem_check=new GRANT_TABLE (t_table,c_table)) ||
2541
- mem_check->ok () && hash_insert (&column_priv_hash,(byte*) mem_check))
2541
+ mem_check->ok () && my_hash_insert (&column_priv_hash,(byte*) mem_check))
2542
2542
{
2543
2543
/* This could only happen if we are out memory */
2544
2544
grant_option= FALSE ; /* purecov: deadcode */
0 commit comments