summaryrefslogtreecommitdiff
path: root/sql/rpl_parallel.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-05-13 15:28:34 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-05-13 15:28:34 +0400
commit9851a8193f6f469b8d7cfea9333adf0008026d9f (patch)
tree19d98fc3a9c0ab17c66be9ca1996151a7c9f734f /sql/rpl_parallel.cc
parent4d1ccc42890029e07048772579af97072e0fa3d5 (diff)
downloadmariadb-git-9851a8193f6f469b8d7cfea9333adf0008026d9f.tar.gz
MDEV-8001 - mysql_reset_thd_for_next_command() takes 0.04% in OLTP RO
Removed yet more mysql_reset_thd_for_next_command(). Call THD::reset_for_next_command() directly instead.
Diffstat (limited to 'sql/rpl_parallel.cc')
-rw-r--r--sql/rpl_parallel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc
index 9a1786cee5d..35c8be2c3d3 100644
--- a/sql/rpl_parallel.cc
+++ b/sql/rpl_parallel.cc
@@ -533,7 +533,7 @@ do_retry:
if (retries < 2)
{
/* Simulate that we get deadlock killed during open_binlog(). */
- mysql_reset_thd_for_next_command(thd);
+ thd->reset_for_next_command();
rgi->killed_for_retry= true;
mysql_mutex_lock(&thd->LOCK_thd_data);
thd->killed= KILL_CONNECTION;