@@ -315,9 +315,9 @@ class ACL_PROXY_USER :public ACL_ACCESS
315315 update_hostname (&host, safe_strdup_root (mem, host_arg));
316316 }
317317
318- bool check_validity (bool check_no_resolve )
318+ bool check_validity ()
319319 {
320- if (check_no_resolve &&
320+ if (opt_skip_name_resolve &&
321321 (hostname_requires_resolving (host.hostname ) ||
322322 hostname_requires_resolving (proxied_host.hostname )))
323323 {
@@ -1781,7 +1781,6 @@ static bool set_user_plugin (ACL_USER *user, size_t password_len)
17811781static bool acl_load (THD *thd, const Grant_tables& tables)
17821782{
17831783 READ_RECORD read_record_info;
1784- bool check_no_resolve= specialflag & SPECIAL_NO_RESOLVE;
17851784 char tmp_name[SAFE_NAME_LEN+1 ];
17861785 int password_length;
17871786 Sql_mode_save old_mode_save (thd);
@@ -1825,7 +1824,7 @@ static bool acl_load(THD *thd, const Grant_tables& tables)
18251824 host.access = host_table.get_access ();
18261825 host.access = fix_rights_for_db (host.access );
18271826 host.sort = get_sort (2 , host.host .hostname , host.db );
1828- if (check_no_resolve && hostname_requires_resolving (host.host .hostname ))
1827+ if (opt_skip_name_resolve && hostname_requires_resolving (host.host .hostname ))
18291828 {
18301829 sql_print_warning (" 'host' entry '%s|%s' "
18311830 " ignored in --skip-name-resolve mode." ,
@@ -1929,7 +1928,7 @@ static bool acl_load(THD *thd, const Grant_tables& tables)
19291928 continue ;
19301929 }
19311930
1932- if (!is_role && check_no_resolve &&
1931+ if (!is_role && opt_skip_name_resolve &&
19331932 hostname_requires_resolving (user.host .hostname ))
19341933 {
19351934 sql_print_warning (" 'user' entry '%s@%s' "
@@ -2105,7 +2104,7 @@ static bool acl_load(THD *thd, const Grant_tables& tables)
21052104 sql_print_warning (" Found an entry in the 'db' table with empty database name; Skipped" );
21062105 continue ;
21072106 }
2108- if (check_no_resolve && hostname_requires_resolving (db.host .hostname ))
2107+ if (opt_skip_name_resolve && hostname_requires_resolving (db.host .hostname ))
21092108 {
21102109 sql_print_warning (" 'db' entry '%s %s@%s' "
21112110 " ignored in --skip-name-resolve mode." ,
@@ -2160,7 +2159,7 @@ static bool acl_load(THD *thd, const Grant_tables& tables)
21602159 {
21612160 ACL_PROXY_USER proxy;
21622161 proxy.init (proxies_priv_table, &acl_memroot);
2163- if (proxy.check_validity (check_no_resolve ))
2162+ if (proxy.check_validity ())
21642163 continue ;
21652164 if (push_dynamic (&acl_proxy_users, (uchar*) &proxy))
21662165 DBUG_RETURN (TRUE );
@@ -7348,7 +7347,6 @@ static bool grant_load(THD *thd,
73487347{
73497348 bool return_val= 1 ;
73507349 TABLE *t_table, *c_table, *p_table;
7351- bool check_no_resolve= specialflag & SPECIAL_NO_RESOLVE;
73527350 MEM_ROOT *save_mem_root= thd->mem_root ;
73537351 sql_mode_t old_sql_mode= thd->variables .sql_mode ;
73547352 DBUG_ENTER (" grant_load" );
@@ -7392,7 +7390,7 @@ static bool grant_load(THD *thd,
73927390goto end_unlock;
73937391 }
73947392
7395- if (check_no_resolve )
7393+ if (opt_skip_name_resolve )
73967394 {
73977395if (hostname_requires_resolving (mem_check->host .hostname ))
73987396{
@@ -7437,7 +7435,7 @@ static bool grant_load(THD *thd,
74377435 goto end_unlock_p;
74387436 }
74397437
7440- if (check_no_resolve )
7438+ if (opt_skip_name_resolve )
74417439 {
74427440 if (hostname_requires_resolving (mem_check->host .hostname ))
74437441 {
0 commit comments