Get a cached internal schema access. @param grant_internal_info the cache @param schema_name the name of the internal schema */
| 9581 | @param schema_name the name of the internal schema |
| 9582 | */ |
| 9583 | const ACL_internal_schema_access * |
| 9584 | get_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. |
no outgoing calls
no test coverage detected