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

Method register_schema

phx_percona/percona/sql/sql_acl.cc:9546–9555  ·  view source on GitHub ↗

Add an internal schema to the registry. @param name the schema name @param access the schema ACL specific rules */

Source from the content-addressed store, hash-verified

9544 @param access the schema ACL specific rules
9545*/
9546void ACL_internal_schema_registry::register_schema
9547 (const LEX_STRING *name, const ACL_internal_schema_access *access)
9548{
9549 DBUG_ASSERT(m_registry_array_size < array_elements(registry_array));
9550
9551 /* Not thread safe, and does not need to be. */
9552 registry_array[m_registry_array_size].m_name= name;
9553 registry_array[m_registry_array_size].m_access= access;
9554 m_registry_array_size++;
9555}
9556
9557/**
9558 Search per internal schema ACL by name.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected