Commit 741c14cb authored by Sergei Golubchik's avatar Sergei Golubchik

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
parent 16d4431a
...@@ -3456,7 +3456,7 @@ bool change_password(THD *thd, LEX_USER *user) ...@@ -3456,7 +3456,7 @@ bool change_password(THD *thd, LEX_USER *user)
goto end; goto end;
} }
acl_cache->clear(1); // Clear locked hostname cache hostname_cache_refresh(); // Clear locked hostname cache
mysql_mutex_unlock(&acl_cache->lock); mysql_mutex_unlock(&acl_cache->lock);
result= 0; result= 0;
if (mysql_bin_log.is_open()) if (mysql_bin_log.is_open())
...@@ -3621,7 +3621,6 @@ int acl_set_default_role(THD *thd, const char *host, const char *user, ...@@ -3621,7 +3621,6 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
goto end; goto end;
} }
acl_cache->clear(1);
mysql_mutex_unlock(&acl_cache->lock); mysql_mutex_unlock(&acl_cache->lock);
result= 0; result= 0;
if (mysql_bin_log.is_open()) if (mysql_bin_log.is_open())
......
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