summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2019-11-27 09:31:47 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2019-11-27 09:31:47 +0400
commitbfa6db38cdbfcae5f7b59b3d7455407636d2740a (patch)
treecb7eccfb9db2e0a7a8e2febbfe2a04cde7d15d6e /sql/sql_insert.cc
parent0e403db2c884b72bd0b5de404f38b6cef75ed58e (diff)
downloadmariadb-git-bfa6db38cdbfcae5f7b59b3d7455407636d2740a.tar.gz
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
The thread_id of the INSERT DELAYED thread should not be set to 0.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 9dca28ce48f..ec0ab9cb174 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -2076,13 +2076,14 @@ public:
passed from connection thread to the handler thread.
*/
MDL_request grl_protection;
+ my_thread_id orig_thread_id;
void set_default_user()
{
thd.security_ctx->user=(char*) delayed_user;
thd.security_ctx->host=(char*) my_localhost;
thd.security_ctx->ip= NULL;
thd.query_id= 0;
- thd.thread_id= 0;
+ thd.thread_id= orig_thread_id;
}
void set_user_from_row(const delayed_row *r)