| 991 | extern "C" |
| 992 | { |
| 993 | const uchar *query_cache_query_get_key(const void *record, size_t *length, |
| 994 | my_bool) |
| 995 | { |
| 996 | auto query_block= static_cast<const Query_cache_block *>(record); |
| 997 | *length= (query_block->used - query_block->headers_len() - |
| 998 | ALIGN_SIZE(sizeof(Query_cache_query))); |
| 999 | return reinterpret_cast<const uchar *> |
| 1000 | (((query_block->data()) + ALIGN_SIZE(sizeof(Query_cache_query)))); |
| 1001 | } |
| 1002 | } |
| 1003 | |
| 1004 | /***************************************************************************** |
no test coverage detected