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

Method close_tables_if

plugin/handler_socket/handlersocket/database.cpp:446–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446void
447dbcontext::close_tables_if()
448{
449 unlock_tables_if();
450 DENA_VERBOSE(100, fprintf(stderr, "HNDSOCK close tables\n"));
451 close_thread_tables(thd);
452 thd->mdl_context.release_transactional_locks(thd);
453 if (!table_vec.empty()) {
454 statistic_increment(close_tables_count, &LOCK_status);
455 table_vec.clear();
456 table_map.clear();
457 }
458}
459
460void
461dbcontext::table_addref(size_t tbl_id)

Callers 2

run_one_nbMethod · 0.80
run_one_epMethod · 0.80

Calls 4

close_thread_tablesFunction · 0.85
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected