1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-30154: Assertion `strcasecmp(rolename, public_name.str) || acl_public == role' failed in acl_update_role on GRANT ... TO PUBLIC

Reset of acl_public was made too early (before saving it to restore in case
of error).
This commit is contained in:
Oleksandr Byelkin
2022-12-07 14:59:06 +01:00
parent a5be6c91cb
commit 22491e627a
3 changed files with 38 additions and 1 deletions

View File

@ -2918,7 +2918,6 @@ bool acl_reload(THD *thd)
int result;
DBUG_ENTER("acl_reload");
acl_public= NULL;
Grant_tables tables;
/*
@ -2963,6 +2962,7 @@ bool acl_reload(THD *thd)
old_mem= acl_memroot;
delete_dynamic(&acl_wild_hosts);
my_hash_free(&acl_check_hosts);
acl_public= NULL;
if ((result= acl_load(thd, tables)))
{ // Error. Revert to old list