summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorHF <holyfoot@mariadb.com>2019-11-29 21:25:52 +0000
committerHF <holyfoot@mariadb.com>2019-11-29 21:25:52 +0000
commit3fb0fe400c3f6eb8f4d9f34e81db5516f4ecf3dc (patch)
treedeffd30a02e7377acb530950e2111b27bffaa024 /sql/sql_insert.cc
parentbd11bd63ccbfa71dbd359314db6c4f116629a357 (diff)
downloadmariadb-git-3fb0fe400c3f6eb8f4d9f34e81db5516f4ecf3dc.tar.gz
MENT-510 Failing test(s): perfschema.threads_insert_delayed.
orig_test_id should be set properly. Also fixed sporadic test failure.
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index ec0ab9cb174..a312a8652c4 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -2104,6 +2104,7 @@ public:
status(0), retry(0), handler_thread_initialized(FALSE), group_count(0)
{
DBUG_ENTER("Delayed_insert constructor");
+ orig_thread_id= thd.thread_id;
set_default_user();
strmake_buf(thd.security_ctx->priv_user, thd.security_ctx->user);
thd.current_tablenr=0;