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

Function undo_add_role_user_mapping

sql/sql_acl.cc:4043–4052  ·  view source on GitHub ↗

Revert the last add_role_user_mapping() action */

Source from the content-addressed store, hash-verified

4041 Revert the last add_role_user_mapping() action
4042*/
4043static void undo_add_role_user_mapping(ACL_USER_BASE *grantee, ACL_ROLE *role)
4044{
4045 void *pop __attribute__((unused));
4046
4047 pop= pop_dynamic(&grantee->role_grants);
4048 DBUG_ASSERT(role == *(ACL_ROLE**)pop);
4049
4050 pop= pop_dynamic(&role->parent_grantee);
4051 DBUG_ASSERT(grantee == *(ACL_USER_BASE**)pop);
4052}
4053
4054/*
4055 this helper is used when building role_grants and parent_grantee arrays

Callers 2

mysql_grant_roleFunction · 0.85
mysql_create_userFunction · 0.85

Calls 1

pop_dynamicFunction · 0.85

Tested by

no test coverage detected