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

Method init

sql/sql_cache.cc:821–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819*****************************************************************************/
820
821void Query_cache_block::init(size_t block_length)
822{
823 DBUG_ENTER("Query_cache_block::init");
824 DBUG_PRINT("qcache", ("init block: %p length: %zu", this,
825 block_length));
826 length = block_length;
827 used = 0;
828 type = Query_cache_block::FREE;
829 n_tables = 0;
830 DBUG_VOID_RETURN;
831}
832
833void Query_cache_block::destroy()
834{

Callers 4

init_cacheMethod · 0.45
split_blockMethod · 0.45
pack_cacheMethod · 0.45
move_by_typeMethod · 0.45

Calls 1

free_cacheFunction · 0.85

Tested by

no test coverage detected