summaryrefslogtreecommitdiff
path: root/mysys/my_thr_init.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mysql.com>2009-10-30 19:13:58 +0100
committerSergei Golubchik <serg@mysql.com>2009-10-30 19:13:58 +0100
commit319847a4ec9cbe96b2bf7fb1ff5f8d263e8d12bb (patch)
tree53d531c0319fefc2db3ea6c70ceb4648c3cb4ed9 /mysys/my_thr_init.c
parenteff49de23e87dabb17b07b74f04b104748df8517 (diff)
downloadmariadb-git-319847a4ec9cbe96b2bf7fb1ff5f8d263e8d12bb.tar.gz
backport of dbug extensions from 6.0:
function/ syntax glob(7) wildcards unit tests
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r--mysys/my_thr_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index f37ba111993..b2972faf0f8 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -387,6 +387,15 @@ const char *my_thread_name(void)
}
return tmp->name;
}
+
+/* Return pointer to DBUG for holding current state */
+
+extern void **my_thread_var_dbug()
+{
+ struct st_my_thread_var *tmp=
+ my_pthread_getspecific(struct st_my_thread_var*,THR_KEY_mysys);
+ return tmp && tmp->init ? &tmp->dbug : 0;
+}
#endif /* DBUG_OFF */