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

Function get_cached_schema_access

sql/sql_acl.cc:13644–13659  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

13642 @param schema_name the name of the internal schema
13643*/
13644const ACL_internal_schema_access *
13645get_cached_schema_access(GRANT_INTERNAL_INFO *grant_internal_info,
13646 const char *schema_name)
13647{
13648 if (grant_internal_info)
13649 {
13650 if (! grant_internal_info->m_schema_lookup_done)
13651 {
13652 grant_internal_info->m_schema_access=
13653 ACL_internal_schema_registry::lookup(schema_name);
13654 grant_internal_info->m_schema_lookup_done= TRUE;
13655 }
13656 return grant_internal_info->m_schema_access;
13657 }
13658 return ACL_internal_schema_registry::lookup(schema_name);
13659}
13660
13661/**
13662 Get a cached internal table access.

Callers 2

check_accessFunction · 0.85
get_cached_table_accessFunction · 0.85

Calls 1

lookupFunction · 0.85

Tested by

no test coverage detected