Skip to content

Commit dd8b0c5

Browse files
committed
Bug#37132323: db cache is not flushed on DROP USER
The DB grant cache is not cleaned up at DROP USER. This was causing ghost grants until FLUSH PRIVILEGES. Fixed by flushing the cache. Change-Id: I1096558daffab2d5f75fe12af723680d5c1d2416
1 parent 2753968 commit dd8b0c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/auth/sql_user.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,6 +3133,7 @@ bool mysql_drop_user(THD *thd, List<LEX_USER> &list, bool if_exists,
31333133
/* Rebuild 'acl_check_hosts' since 'acl_users' has been modified */
31343134
rebuild_check_host();
31353135
rebuild_cached_acl_users_for_name();
3136+
clear_and_init_db_cache(); /* Clear privilege cache */
31363137

31373138
if (result && !thd->is_error()) {
31383139
String operation_str;

0 commit comments

Comments
 (0)