MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / close_tables_if

Method close_tables_if

handlersocket/database.cpp:485–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void
486dbcontext::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
501void
502dbcontext::table_addref(size_t tbl_id)

Callers 2

run_one_nbMethod · 0.80
run_one_epMethod · 0.80

Calls 2

emptyMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected