Commit 37f1ab23 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21054 Crash on shutdown due to btr_search_latches=NULL

innodb_shutdown(): Invoke os_aio_free() before btr_search_sys_free().
parent a808c18b
...@@ -2385,17 +2385,11 @@ void innodb_shutdown() ...@@ -2385,17 +2385,11 @@ void innodb_shutdown()
} }
dict_sys.close(); dict_sys.close();
btr_search_sys_free();
/* 3. Free all InnoDB's own mutexes and the os_fast_mutexes inside
them */
os_aio_free(); os_aio_free();
btr_search_sys_free();
row_mysql_close(); row_mysql_close();
srv_free(); srv_free();
fil_system.close(); fil_system.close();
/* 4. Free all allocated memory */
pars_lexer_close(); pars_lexer_close();
recv_sys.close(); recv_sys.close();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment