Commit 261831dd authored by serg@serg.mylan's avatar serg@serg.mylan

#ifdef removed

comment clarified
parent 5742f29a
...@@ -3589,13 +3589,16 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list) ...@@ -3589,13 +3589,16 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
VOID(pthread_mutex_unlock(&acl_cache->lock)); VOID(pthread_mutex_unlock(&acl_cache->lock));
rw_unlock(&LOCK_grant); rw_unlock(&LOCK_grant);
close_thread_tables(thd); close_thread_tables(thd);
#ifdef TO_BE_DELETED
/* XXX this should not be necessary. The error message is already printed */ /* XXX this should not be necessary. The error message is already printed
by replace_xxx_table. my_error() should be use above instead of
sql_print_error(), and print ER_NONEXISTING_GRANT - as other grant
commands do */
/* when this code is deleted, the error slot (error 1268) can be reused, /* when this code is deleted, the error slot (error 1268) can be reused,
as this error code was not present in any MySQL release */ as this error code was not present in any MySQL release */
if (result) if (result)
my_error(ER_REVOKE_GRANTS, MYF(0)); my_error(ER_REVOKE_GRANTS, MYF(0));
#endif
DBUG_RETURN(result); DBUG_RETURN(result);
} }
......
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