Get a cached internal table access. @param grant_internal_info the cache @param schema_name the name of the internal schema @param table_name the name of the internal table */
| 13665 | @param table_name the name of the internal table |
| 13666 | */ |
| 13667 | const ACL_internal_table_access * |
| 13668 | get_cached_table_access(GRANT_INTERNAL_INFO *grant_internal_info, |
| 13669 | const char *schema_name, |
| 13670 | const char *table_name) |
| 13671 | { |
| 13672 | DBUG_ASSERT(grant_internal_info); |
| 13673 | if (! grant_internal_info->m_table_lookup_done) |
| 13674 | { |
| 13675 | const ACL_internal_schema_access *schema_access; |
| 13676 | schema_access= get_cached_schema_access(grant_internal_info, schema_name); |
| 13677 | if (schema_access) |
| 13678 | grant_internal_info->m_table_access= schema_access->lookup(table_name); |
| 13679 | grant_internal_info->m_table_lookup_done= TRUE; |
| 13680 | } |
| 13681 | return grant_internal_info->m_table_access; |
| 13682 | } |
| 13683 | |
| 13684 | |
| 13685 | /**************************************************************************** |
no test coverage detected