Commit 8289f64a authored by osku's avatar osku

Move calling of thr_local_free() from trx_free_for_mysql() to

innobase_close_connection().
parent fd93a09e
...@@ -132,6 +132,7 @@ extern "C" { ...@@ -132,6 +132,7 @@ extern "C" {
#include "../storage/innobase/include/sync0sync.h" #include "../storage/innobase/include/sync0sync.h"
#include "../storage/innobase/include/fil0fil.h" #include "../storage/innobase/include/fil0fil.h"
#include "../storage/innobase/include/trx0xa.h" #include "../storage/innobase/include/trx0xa.h"
#include "../storage/innobase/include/thr0loc.h"
} }
#define HA_INNOBASE_ROWS_IN_TABLE 10000 /* to get optimization right */ #define HA_INNOBASE_ROWS_IN_TABLE 10000 /* to get optimization right */
...@@ -2298,6 +2299,7 @@ innobase_close_connection( ...@@ -2298,6 +2299,7 @@ innobase_close_connection(
innobase_rollback_trx(trx); innobase_rollback_trx(trx);
thr_local_free(trx->mysql_thread_id);
trx_free_for_mysql(trx); trx_free_for_mysql(trx);
return(0); return(0);
......
...@@ -366,8 +366,6 @@ trx_free_for_mysql( ...@@ -366,8 +366,6 @@ trx_free_for_mysql(
/*===============*/ /*===============*/
trx_t* trx) /* in, own: trx object */ trx_t* trx) /* in, own: trx object */
{ {
thr_local_free(trx->mysql_thread_id);
mutex_enter(&kernel_mutex); mutex_enter(&kernel_mutex);
UT_LIST_REMOVE(mysql_trx_list, trx_sys->mysql_trx_list, trx); UT_LIST_REMOVE(mysql_trx_list, trx_sys->mysql_trx_list, trx);
......
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