mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Removed no longer needed hash_walk_action. The function was used to delete
no longer valid entries in the roles_mappings HASH. This job will be delegated to handle_grant_* functions
This commit is contained in:
committed by
Sergei Golubchik
parent
6988e6c56a
commit
de472770d3
@ -2066,16 +2066,6 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping)
|
||||
}
|
||||
|
||||
|
||||
static my_bool roles_mappings_walk_action(ROLE_GRANT_PAIR *mapping,
|
||||
void * not_used __attribute__((unused)))
|
||||
{
|
||||
if (add_role_user_mapping(mapping)) {
|
||||
//the mapping is invalid, the mapping can be safely deleted
|
||||
my_hash_delete(&acl_roles_mappings, (uchar*) mapping);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Rebuild the role grants every time the acl_users is modified
|
||||
|
||||
|
Reference in New Issue
Block a user