summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-04-15 18:32:34 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-05-13 10:43:14 +0400
commit7cfa803d8ec9f4f79d44c8dafc675a79f5b3eb88 (patch)
treee4a6fde06aa65ae0a486d8fb5576c92ff1706b43 /sql/rpl_rli.cc
parent5cfb6b479efd05fafc77caf94d60240b879d5073 (diff)
downloadmariadb-git-7cfa803d8ec9f4f79d44c8dafc675a79f5b3eb88.tar.gz
MDEV-8001 - mysql_reset_thd_for_next_command() takes 0.04% in OLTP RO
Removed mysql_reset_thd_for_next_command(). Call THD::reset_for_next_command() directly instead. mysql_reset_thd_for_next_command() overhead dropped 0.04% -> out of radar. THD::reset_for_next_command() overhead didn't increase.
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 2c98cc681f5..b8e44b5634e 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -1485,7 +1485,7 @@ rpl_load_gtid_slave_state(THD *thd)
goto end;
array_inited= true;
- mysql_reset_thd_for_next_command(thd);
+ thd->reset_for_next_command();
tlist.init_one_table(STRING_WITH_LEN("mysql"),
rpl_gtid_slave_state_table_name.str,