| 4651 | |
| 4652 | |
| 4653 | void 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 | |
| 4669 | Statement_map::~Statement_map() |
no test coverage detected