Revert the last add_role_user_mapping() action */
| 4041 | Revert the last add_role_user_mapping() action |
| 4042 | */ |
| 4043 | static 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 |
no test coverage detected