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

Method init_n_lock

sql/sql_cache.cc:962–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960
961
962void Query_cache_query::init_n_lock()
963{
964 DBUG_ENTER("Query_cache_query::init_n_lock");
965 res=0; wri = 0; len = 0; ready= 0; hit_count = 0;
966 mysql_rwlock_init(key_rwlock_query_cache_query_lock, &lock);
967 lock_writing();
968 DBUG_PRINT("qcache", ("inited & locked query for block %p",
969 (uchar*) this -
970 ALIGN_SIZE(sizeof(Query_cache_block))));
971 DBUG_VOID_RETURN;
972}
973
974
975void Query_cache_query::unlock_n_destroy()

Callers 1

store_queryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected