| 483 | } |
| 484 | |
| 485 | void |
| 486 | dbcontext::close_tables_if() |
| 487 | { |
| 488 | unlock_tables_if(); |
| 489 | DENA_VERBOSE(100, fprintf(stderr, "HNDSOCK close tables\n")); |
| 490 | close_thread_tables(thd); |
| 491 | #if MYSQL_VERSION_ID >= 50505 |
| 492 | thd->mdl_context.release_transactional_locks(); |
| 493 | #endif |
| 494 | if (!table_vec.empty()) { |
| 495 | statistic_increment(close_tables_count, &LOCK_status); |
| 496 | table_vec.clear(); |
| 497 | table_map.clear(); |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | void |
| 502 | dbcontext::table_addref(size_t tbl_id) |
no test coverage detected