summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sun.com>2010-02-23 20:25:38 +0100
committerVladislav Vaintroub <wlad@sun.com>2010-02-23 20:25:38 +0100
commit0f3f6da62484f238d1d9b8f2f20c6bba139f6924 (patch)
tree559eed900ec90fd4db2acc7b40c47ced052c6eb9 /libmysqld
parent0a8a9a3fc083fbaf44ce2b59d4995af9950f11b4 (diff)
downloadmariadb-git-0f3f6da62484f238d1d9b8f2f20c6bba139f6924.tar.gz
Bug#43201: Post-fix. Set thread stack address at the start of each query.
Reason: implementation of send/reap in mysqltest uses the same "embedded" connection in a thread different from current, so thread stack has to change when connection is used in different OS thread..
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index c1c5ce3ec97..41ca574ab05 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -118,6 +118,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
net_clear_error(net);
thd->current_stmt= stmt;
+ thd->thread_stack= (char*) &thd;
thd->store_globals(); // Fix if more than one connect
/*
We have to call free_old_query before we start to fill mysql->fields