• Sergey Vojtovich's avatar
    MDEV-4956 - Reduce usage of LOCK_open: TABLE_SHARE::tdc.used_tables · 98c4f167
    Sergey Vojtovich authored
    - tc_acquire_table and tc_release_table do not access
      TABLE_SHARE::tdc.used_tables anymore
    - in tc_acquire_table(): release LOCK_tdc after we relase LOCK_open
      (saves a few CPU cycles in critical section)
    - in tc_release_table(): if we reached table cache threshold, evict
      to-be-released table without moving it to unused_tables. unused_tables
      must be empty at this point.
    98c4f167
table.h 83.3 KB