• unknown's avatar
    Bug #15775 "drop user" command does not refresh acl_check_hosts · 93bedc1f
    unknown authored
     - Update patch for 5.0 
     - Added common function to be called when 'acl_users' has been modified
    
    
    mysql-test/r/grant2.result:
      Use "create user" to avoid warnings about missing fields
    mysql-test/t/grant2.test:
      Use "create user" to avoid warnings about missing fields
    sql/sql_acl.cc:
      Add new function "rebuild_check_host" that is to be called when the 'acl_users'
      list has changed.
      Call function "rebuild_check_host" from mysql_drop_user, mysql_rename_user and acl_insert_user.
      Use "acl_user->host.hostname" as key when searching the acl_check_hosts in init_check_host.
    93bedc1f
grant2.result 15.3 KB