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:
@ -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
|
||||
|
Reference in New Issue
Block a user