diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-10-22 12:33:09 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-10-22 17:11:23 +0200 |
commit | 741c14cbdd09ace171e0630a4231de27d8cc7dd0 (patch) | |
tree | 379f37e5e3f7fed75b46bf31ca06edfc3a7058da | |
parent | 16d4431ab67d77be78171edcf395a1300b0add57 (diff) | |
download | mariadb-git-741c14cbdd09ace171e0630a4231de27d8cc7dd0.tar.gz |
remove two acl_cache->clear()
* to "clear hostname cache" one needs to use hostname_cache->clear()
* no need to clear acl_cache for SET DEFAULT ROLE
-rw-r--r-- | sql/sql_acl.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 7057c32f2f0..5a2865e535e 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -3456,7 +3456,7 @@ bool change_password(THD *thd, LEX_USER *user) goto end; } - acl_cache->clear(1); // Clear locked hostname cache + hostname_cache_refresh(); // Clear locked hostname cache mysql_mutex_unlock(&acl_cache->lock); result= 0; if (mysql_bin_log.is_open()) @@ -3621,7 +3621,6 @@ int acl_set_default_role(THD *thd, const char *host, const char *user, goto end; } - acl_cache->clear(1); mysql_mutex_unlock(&acl_cache->lock); result= 0; if (mysql_bin_log.is_open()) |