Commit a8266151 authored by Marko Mäkelä's avatar Marko Mäkelä

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

parents 631b5ef0 4bb4eb80
...@@ -87,7 +87,8 @@ thr_local_validate( ...@@ -87,7 +87,8 @@ thr_local_validate(
const thr_local_t* local) /*!< in: data to validate */ const thr_local_t* local) /*!< in: data to validate */
{ {
ut_ad(local->magic_n == THR_LOCAL_MAGIC_N); ut_ad(local->magic_n == THR_LOCAL_MAGIC_N);
ut_ad(local->slot_no < OS_THREAD_MAX_N); ut_ad(local->slot_no == ULINT_UNDEFINED
|| local->slot_no < OS_THREAD_MAX_N);
ut_ad(local->in_ibuf == FALSE || local->in_ibuf == TRUE); ut_ad(local->in_ibuf == FALSE || local->in_ibuf == TRUE);
return(TRUE); return(TRUE);
} }
...@@ -211,7 +212,7 @@ thr_local_create(void) ...@@ -211,7 +212,7 @@ thr_local_create(void)
local->id = os_thread_get_curr_id(); local->id = os_thread_get_curr_id();
local->handle = os_thread_get_curr(); local->handle = os_thread_get_curr();
local->magic_n = THR_LOCAL_MAGIC_N; local->magic_n = THR_LOCAL_MAGIC_N;
local->slot_no = ULINT_UNDEFINED;
local->in_ibuf = FALSE; local->in_ibuf = FALSE;
mutex_enter(&thr_local_mutex); mutex_enter(&thr_local_mutex);
......
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