MCPcopy Create free account
hub / github.com/MariaDB/server / get_cached_table_access

Function get_cached_table_access

sql/sql_acl.cc:13667–13682  ·  view source on GitHub ↗

Get a cached internal table access. @param grant_internal_info the cache @param schema_name the name of the internal schema @param table_name the name of the internal table */

Source from the content-addressed store, hash-verified

13665 @param table_name the name of the internal table
13666*/
13667const ACL_internal_table_access *
13668get_cached_table_access(GRANT_INTERNAL_INFO *grant_internal_info,
13669 const char *schema_name,
13670 const char *table_name)
13671{
13672 DBUG_ASSERT(grant_internal_info);
13673 if (! grant_internal_info->m_table_lookup_done)
13674 {
13675 const ACL_internal_schema_access *schema_access;
13676 schema_access= get_cached_schema_access(grant_internal_info, schema_name);
13677 if (schema_access)
13678 grant_internal_info->m_table_access= schema_access->lookup(table_name);
13679 grant_internal_info->m_table_lookup_done= TRUE;
13680 }
13681 return grant_internal_info->m_table_access;
13682}
13683
13684
13685/****************************************************************************

Callers 1

check_grantFunction · 0.85

Calls 2

get_cached_schema_accessFunction · 0.85
lookupMethod · 0.45

Tested by

no test coverage detected