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

Function find_acl_user_base

sql/sql_acl.cc:4648–4655  ·  view source on GitHub ↗

Finds a grantee - something that privileges or roles can be granted to. */

Source from the content-addressed store, hash-verified

4646 Finds a grantee - something that privileges or roles can be granted to.
4647*/
4648static ACL_USER_BASE *find_acl_user_base(const LEX_CSTRING &user,
4649 const LEX_CSTRING &host)
4650{
4651 if (*host.str)
4652 return find_user_exact(host, user);
4653
4654 return find_acl_role(user, true);
4655}
4656
4657
4658/*

Callers 2

add_role_user_mappingFunction · 0.85
mysql_create_userFunction · 0.85

Calls 2

find_user_exactFunction · 0.85
find_acl_roleFunction · 0.85

Tested by

no test coverage detected