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

Function get_mqh

phx_percona/percona/sql/sql_acl.cc:7120–7132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7118
7119
7120void get_mqh(const char *user, const char *host, USER_CONN *uc)
7121{
7122 ACL_USER *acl_user;
7123
7124 mysql_mutex_lock(&acl_cache->lock);
7125
7126 if (initialized && (acl_user= find_acl_user(host,user, FALSE)))
7127 uc->user_resources= acl_user->user_resource;
7128 else
7129 memset(&uc->user_resources, 0, sizeof(uc->user_resources));
7130
7131 mysql_mutex_unlock(&acl_cache->lock);
7132}
7133
7134/**
7135 Open the grant tables.

Callers

nothing calls this directly

Calls 1

find_acl_userFunction · 0.85

Tested by

no test coverage detected