Commit 2a488180 authored by Sergei Golubchik's avatar Sergei Golubchik

InnoDB: don't pthread_join() a thread that wasn't created

this fixes the crash in innodb.101_compatibility test
parent 9189284b
......@@ -4607,7 +4607,9 @@ innobase_end(
}
innobase_space_shutdown();
pthread_join(thd_destructor_thread, NULL);
if (!srv_read_only_mode) {
pthread_join(thd_destructor_thread, NULL);
}
mysql_mutex_destroy(&innobase_share_mutex);
mysql_mutex_destroy(&commit_cond_m);
......
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