Get a cached internal schema access. @param grant_internal_info the cache @param schema_name the name of the internal schema */
| 13642 | @param schema_name the name of the internal schema |
| 13643 | */ |
| 13644 | const ACL_internal_schema_access * |
| 13645 | get_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. |
no test coverage detected