summaryrefslogtreecommitdiff
path: root/innobase/thr/thr0loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/thr/thr0loc.c')
-rw-r--r--innobase/thr/thr0loc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/innobase/thr/thr0loc.c b/innobase/thr/thr0loc.c
index a17d09fcca6..033bb22807f 100644
--- a/innobase/thr/thr0loc.c
+++ b/innobase/thr/thr0loc.c
@@ -46,12 +46,11 @@ struct thr_local_struct{
ibool in_ibuf;/* TRUE if the the thread is doing an ibuf
operation */
hash_node_t hash; /* hash chain node */
-#ifdef UNIV_DEBUG
ulint magic_n;
-#define THR_LOCAL_MAGIC_N 1231234
-#endif /* UNIV_DEBUG */
};
+#define THR_LOCAL_MAGIC_N 1231234
+
/***********************************************************************
Returns the local storage struct for a thread. */
static
@@ -170,9 +169,8 @@ thr_local_create(void)
local->id = os_thread_get_curr_id();
local->handle = os_thread_get_curr();
-#ifdef UNIV_DEBUG
local->magic_n = THR_LOCAL_MAGIC_N;
-#endif /* UNIV_DEBUG */
+
local->in_ibuf = FALSE;
mutex_enter(&thr_local_mutex);
@@ -211,7 +209,7 @@ thr_local_free(
mutex_exit(&thr_local_mutex);
- ut_ad(local->magic_n == THR_LOCAL_MAGIC_N);
+ ut_a(local->magic_n == THR_LOCAL_MAGIC_N);
mem_free(local);
}