mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
extend check_global_access() to avoid my_error when it's not needed
(in INFORMATION_SCHEMA).
This commit is contained in:
@ -2920,8 +2920,8 @@ int fill_schema_user_stats(THD* thd, TABLE_LIST* tables, COND* cond)
|
||||
int result;
|
||||
DBUG_ENTER("fill_schema_user_stats");
|
||||
|
||||
if (check_global_access(thd, SUPER_ACL | PROCESS_ACL))
|
||||
DBUG_RETURN(1);
|
||||
if (check_global_access(thd, SUPER_ACL | PROCESS_ACL, true))
|
||||
DBUG_RETURN(0);
|
||||
|
||||
/*
|
||||
Iterates through all the global stats and sends them to the client.
|
||||
@ -2955,8 +2955,8 @@ int fill_schema_client_stats(THD* thd, TABLE_LIST* tables, COND* cond)
|
||||
int result;
|
||||
DBUG_ENTER("fill_schema_client_stats");
|
||||
|
||||
if (check_global_access(thd, SUPER_ACL | PROCESS_ACL))
|
||||
DBUG_RETURN(1);
|
||||
if (check_global_access(thd, SUPER_ACL | PROCESS_ACL, true))
|
||||
DBUG_RETURN(0);
|
||||
|
||||
/*
|
||||
Iterates through all the global stats and sends them to the client.
|
||||
|
Reference in New Issue
Block a user