MCPcopy Create free account
hub / github.com/Tencent/phxsql / is_acl_user

Function is_acl_user

phx_percona/percona/sql/sql_acl.cc:2763–2775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2761*/
2762
2763bool is_acl_user(const char *host, const char *user)
2764{
2765 bool res;
2766
2767 /* --skip-grants */
2768 if (!initialized)
2769 return TRUE;
2770
2771 mysql_mutex_lock(&acl_cache->lock);
2772 res= find_acl_user(host, user, TRUE) != NULL;
2773 mysql_mutex_unlock(&acl_cache->lock);
2774 return res;
2775}
2776
2777
2778/*

Callers

nothing calls this directly

Calls 1

find_acl_userFunction · 0.85

Tested by

no test coverage detected