mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
part 1 (ver 2, postreview fix) of WL#2787
view definer information syntax/storage/replication fixed SOURCE field of .frm
This commit is contained in:
@ -1456,6 +1456,29 @@ end:
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Find user in ACL
|
||||
|
||||
SYNOPSIS
|
||||
is_acl_user()
|
||||
host host name
|
||||
user user name
|
||||
|
||||
RETURN
|
||||
FALSE user not fond
|
||||
TRUE there are such user
|
||||
*/
|
||||
|
||||
bool is_acl_user(const char *host, const char *user)
|
||||
{
|
||||
bool res;
|
||||
VOID(pthread_mutex_lock(&acl_cache->lock));
|
||||
res= find_acl_user(host, user, TRUE);
|
||||
VOID(pthread_mutex_unlock(&acl_cache->lock));
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Find first entry that matches the current user
|
||||
*/
|
||||
|
Reference in New Issue
Block a user