MCPcopy Create free account
hub / github.com/MariaDB/server / query_cache_table_get_key

Function query_cache_table_get_key

sql/sql_cache.cc:895–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893extern "C"
894{
895const 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/*****************************************************************************

Callers 2

move_by_typeMethod · 0.85
check_integrityMethod · 0.85

Calls 2

headers_lenMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected