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

Function query_cache_query_get_key

sql/sql_cache.cc:993–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991extern "C"
992{
993const 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/*****************************************************************************

Callers 4

qc_info_fill_tableFunction · 0.85
move_by_typeMethod · 0.85
queries_dumpMethod · 0.85
check_integrityMethod · 0.85

Calls 2

headers_lenMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected