summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-10-02 23:41:10 +0200
committerserg@serg.mylan <>2003-10-02 23:41:10 +0200
commit9be83de693748e795ffb7f75ee47f3e7f77145b7 (patch)
treef3a08b3663737de74d20769d416db7cf740d1381 /sql/sql_acl.cc
parentfc5dedc6c5f4751977f2e99241a91c7004ed364b (diff)
downloadmariadb-git-9be83de693748e795ffb7f75ee47f3e7f77145b7.tar.gz
minor error messages cleanup
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 508ff88a0cf..82450704ee0 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -3589,8 +3589,13 @@ int mysql_revoke_all(THD *thd, List <LEX_USER> &list)
VOID(pthread_mutex_unlock(&acl_cache->lock));
rw_unlock(&LOCK_grant);
close_thread_tables(thd);
+#ifdef TO_BE_DELETED
+ /* XXX this should not be necessary. The error message is already printed */
+ /* when this code is deleted, the error slot (error 1268) can be reused,
+ as this error code was not present in any MySQL release */
if (result)
my_error(ER_REVOKE_GRANTS, MYF(0));
+#endif
DBUG_RETURN(result);
}