summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-07-22 16:17:53 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-07-23 08:28:17 +0300
commit5f2628d1eea21d9732f582b77782b072e5e04014 (patch)
treece8ad509e242d4acc5bd4e050acaf027a3d1c73f /mysql-test
parentddb8309e8c1bac8d419fe5c224665c6dca1e2878 (diff)
downloadmariadb-git-5f2628d1eea21d9732f582b77782b072e5e04014.tar.gz
MDEV-22778 Slow InnoDB shutdown on large instance
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.
Diffstat (limited to 'mysql-test')
0 files changed, 0 insertions, 0 deletions