Commit 3c0f48a4 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-26637: (roles) ASAN: main.metadata and user_variables.basic MTR failures after MDEV-26572

No empty name roles exists (no sens to look for).
The problem already present in our test cases.
parent 8f7edb78
......@@ -4259,14 +4259,18 @@ static ACL_USER * find_user_wild(const char *host, const char *user, const char
*/
static ACL_ROLE *find_acl_role(const char *role)
{
size_t length= strlen(role);
DBUG_ENTER("find_acl_role");
DBUG_PRINT("enter",("role: '%s'", role));
DBUG_PRINT("info", ("Hash elements: %ld", acl_roles.records));
mysql_mutex_assert_owner(&acl_cache->lock);
if (!length)
DBUG_RETURN(NULL);
ACL_ROLE *r= (ACL_ROLE *)my_hash_search(&acl_roles, (uchar *)role,
strlen(role));
length);
DBUG_RETURN(r);
}
......
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