mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fix Bug #57397 io_handler_thread() will never cleanup
rb://483 approved by Inaam
This commit is contained in:
parent
895506247d
commit
d5055f4e8a
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-10-14 The InnoDB Team
|
||||
* srv/srv0start.c
|
||||
Fix Bug #57397 io_handler_thread() will never cleanup
|
||||
|
||||
2010-10-11 The InnoDB Team
|
||||
* row/row0sel.c
|
||||
Fix Bug #57345 btr_pcur_store_position abort for load with
|
||||
|
|
|
@ -471,7 +471,7 @@ io_handler_thread(
|
|||
fprintf(stderr, "Io handler thread %lu starts, id %lu\n", segment,
|
||||
os_thread_pf(os_thread_get_curr_id()));
|
||||
#endif
|
||||
for (i = 0;; i++) {
|
||||
while (srv_shutdown_state != SRV_SHUTDOWN_EXIT_THREADS) {
|
||||
fil_aio_wait(segment);
|
||||
|
||||
mutex_enter(&ios_mutex);
|
||||
|
@ -479,8 +479,6 @@ io_handler_thread(
|
|||
mutex_exit(&ios_mutex);
|
||||
}
|
||||
|
||||
thr_local_free(os_thread_get_curr_id());
|
||||
|
||||
/* We count the number of threads in os_thread_exit(). A created
|
||||
thread should always use that to exit and not use return() to exit.
|
||||
The thread actually never comes here because it is exited in an
|
||||
|
@ -1894,7 +1892,7 @@ innobase_shutdown_for_mysql(void)
|
|||
#ifdef __NETWARE__
|
||||
if (!panic_shutdown)
|
||||
#endif
|
||||
logs_empty_and_mark_files_at_shutdown();
|
||||
logs_empty_and_mark_files_at_shutdown();
|
||||
|
||||
if (srv_conc_n_threads != 0) {
|
||||
fprintf(stderr,
|
||||
|
|
Loading…
Reference in a new issue