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

Function get_cached_schema_access

phx_percona/percona/sql/sql_acl.cc:9583–9598  ·  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

9581 @param schema_name the name of the internal schema
9582*/
9583const ACL_internal_schema_access *
9584get_cached_schema_access(GRANT_INTERNAL_INFO *grant_internal_info,
9585 const char *schema_name)
9586{
9587 if (grant_internal_info)
9588 {
9589 if (! grant_internal_info->m_schema_lookup_done)
9590 {
9591 grant_internal_info->m_schema_access=
9592 ACL_internal_schema_registry::lookup(schema_name);
9593 grant_internal_info->m_schema_lookup_done= TRUE;
9594 }
9595 return grant_internal_info->m_schema_access;
9596 }
9597 return ACL_internal_schema_registry::lookup(schema_name);
9598}
9599
9600/**
9601 Get a cached internal table access.

Callers 1

get_cached_table_accessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected