Commit 9eedd927 authored by Jimmy Yang's avatar Jimmy Yang

Merge from mysql-5.1-innodb to mysql-5.5-innodb.

parents 3293ea96 f3ea4a4f
This diff is collapsed.
This diff is collapsed.
...@@ -8295,8 +8295,6 @@ ha_innobase::get_foreign_key_create_info(void) ...@@ -8295,8 +8295,6 @@ ha_innobase::get_foreign_key_create_info(void)
flen = ftell(srv_dict_tmpfile); flen = ftell(srv_dict_tmpfile);
if (flen < 0) { if (flen < 0) {
flen = 0; flen = 0;
} else if (flen > 64000 - 1) {
flen = 64000 - 1;
} }
/* allocate buffer for the string, and /* allocate buffer for the string, and
......
...@@ -477,7 +477,6 @@ io_handler_thread( ...@@ -477,7 +477,6 @@ io_handler_thread(
the aio array */ the aio array */
{ {
ulint segment; ulint segment;
ulint i;
segment = *((ulint*)arg); segment = *((ulint*)arg);
...@@ -490,7 +489,7 @@ io_handler_thread( ...@@ -490,7 +489,7 @@ io_handler_thread(
pfs_register_thread(io_handler_thread_key); pfs_register_thread(io_handler_thread_key);
#endif /* UNIV_PFS_THREAD */ #endif /* UNIV_PFS_THREAD */
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);
...@@ -498,8 +497,6 @@ io_handler_thread( ...@@ -498,8 +497,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