MCPcopy Create free account
hub / github.com/MariaDB/server / add_role_user_mapping

Function add_role_user_mapping

sql/sql_acl.cc:4033–4038  ·  view source on GitHub ↗

Add the corresponding pointers present in the mapping to the entries in acl_users and acl_roles */

Source from the content-addressed store, hash-verified

4031 acl_users and acl_roles
4032*/
4033static bool add_role_user_mapping(ACL_USER_BASE *grantee, ACL_ROLE *role)
4034{
4035 return push_dynamic(&grantee->role_grants, (uchar*) &role)
4036 || push_dynamic(&role->parent_grantee, (uchar*) &grantee);
4037
4038}
4039
4040/*
4041 Revert the last add_role_user_mapping() action

Callers 4

acl_loadFunction · 0.85
mysql_grant_roleFunction · 0.85
mysql_create_userFunction · 0.85

Calls 2

find_acl_user_baseFunction · 0.85
find_acl_roleFunction · 0.85

Tested by

no test coverage detected