Commit 0a9428cf authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru Committed by Sergei Golubchik

Added debug warning to add_role_user_mapping.

parent df53ed13
...@@ -2055,7 +2055,12 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping) ...@@ -2055,7 +2055,12 @@ my_bool add_role_user_mapping(ROLE_GRANT_PAIR *mapping)
TRUE); TRUE);
ACL_USER *role= find_acl_role(mapping->r_uname ? mapping->r_uname: ""); ACL_USER *role= find_acl_role(mapping->r_uname ? mapping->r_uname: "");
if (user == NULL || role == NULL) if (user == NULL || role == NULL)
{
DBUG_PRINT("warning", ("Invalid add_role_user_mapping '%s'@'%s' %s",
mapping->u_uname, mapping->u_hname,
mapping->r_uname));
return 1; return 1;
}
push_dynamic(&user->role_grants, (uchar*) role); push_dynamic(&user->role_grants, (uchar*) role);
push_dynamic(&role->role_grants, (uchar*) user); push_dynamic(&role->role_grants, (uchar*) user);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment