• Marko Mäkelä's avatar
    MDEV-22778 Slow InnoDB shutdown on large instance · 5f2628d1
    Marko Mäkelä authored
    Starting with MDEV-17441 we would no longer have os_once,
    and we would always initialize zip_pad_info_t::mutex and
    dict_table_t::autoinc_mutex, even for tables are not in
    ROW_FORMAT=COMPRESSED nor include any AUTO_INCREMENT column.
    
    mutex_free() on those unnecessary objects would make shutdown very slow
    compared to older versions.
    
    Let us use std::mutex for those two mutexes, to reduce the overhead.
    The critical sections protected by these mutexes is very small, and
    therefore contention or the need for any instrumentation should
    be unlikely.
    5f2628d1
dict0dict.h 62.5 KB