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

Method reset

sql/sql_class.cc:4653–4666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4651
4652
4653void Statement_map::reset()
4654{
4655 /* Must be first, hash_free will reset st_hash.records */
4656 if (st_hash.records)
4657 {
4658 mysql_mutex_lock(&LOCK_prepared_stmt_count);
4659 DBUG_ASSERT(prepared_stmt_count >= st_hash.records);
4660 prepared_stmt_count-= st_hash.records;
4661 mysql_mutex_unlock(&LOCK_prepared_stmt_count);
4662 }
4663 my_hash_reset(&names_hash);
4664 my_hash_reset(&st_hash);
4665 last_found_statement= 0;
4666}
4667
4668
4669Statement_map::~Statement_map()

Callers 7

initMethod · 0.45
change_userMethod · 0.45
cleanupMethod · 0.45
free_connectionMethod · 0.45
reset_for_reuseMethod · 0.45
start_new_transMethod · 0.45

Calls 1

my_hash_resetFunction · 0.85

Tested by

no test coverage detected