Commit d5055f4e authored by Jimmy Yang's avatar Jimmy Yang

Fix Bug #57397 io_handler_thread() will never cleanup

rb://483 approved by Inaam
parent 89550624
2010-10-14 The InnoDB Team
* srv/srv0start.c
Fix Bug #57397 io_handler_thread() will never cleanup
2010-10-11 The InnoDB Team 2010-10-11 The InnoDB Team
* row/row0sel.c * row/row0sel.c
Fix Bug #57345 btr_pcur_store_position abort for load with Fix Bug #57345 btr_pcur_store_position abort for load with
......
...@@ -471,7 +471,7 @@ io_handler_thread( ...@@ -471,7 +471,7 @@ io_handler_thread(
fprintf(stderr, "Io handler thread %lu starts, id %lu\n", segment, fprintf(stderr, "Io handler thread %lu starts, id %lu\n", segment,
os_thread_pf(os_thread_get_curr_id())); os_thread_pf(os_thread_get_curr_id()));
#endif #endif
for (i = 0;; i++) { while (srv_shutdown_state != SRV_SHUTDOWN_EXIT_THREADS) {
fil_aio_wait(segment); fil_aio_wait(segment);
mutex_enter(&ios_mutex); mutex_enter(&ios_mutex);
...@@ -479,8 +479,6 @@ io_handler_thread( ...@@ -479,8 +479,6 @@ io_handler_thread(
mutex_exit(&ios_mutex); mutex_exit(&ios_mutex);
} }
thr_local_free(os_thread_get_curr_id());
/* We count the number of threads in os_thread_exit(). A created /* 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. 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 The thread actually never comes here because it is exited in an
......
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