| 893 | extern "C" |
| 894 | { |
| 895 | const uchar *query_cache_table_get_key(const void *record, size_t *length, |
| 896 | my_bool) |
| 897 | { |
| 898 | auto table_block= static_cast<const Query_cache_block *>(record); |
| 899 | *length= (table_block->used - table_block->headers_len() - |
| 900 | ALIGN_SIZE(sizeof(Query_cache_table))); |
| 901 | return reinterpret_cast<const uchar *>( |
| 902 | ((table_block->data()) + ALIGN_SIZE(sizeof(Query_cache_table)))); |
| 903 | } |
| 904 | } |
| 905 | |
| 906 | /***************************************************************************** |
no test coverage detected