diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-04-15 18:32:34 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-05-13 10:43:14 +0400 |
commit | 7cfa803d8ec9f4f79d44c8dafc675a79f5b3eb88 (patch) | |
tree | e4a6fde06aa65ae0a486d8fb5576c92ff1706b43 /sql/rpl_gtid.cc | |
parent | 5cfb6b479efd05fafc77caf94d60240b879d5073 (diff) | |
download | mariadb-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_gtid.cc')
-rw-r--r-- | sql/rpl_gtid.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_gtid.cc b/sql/rpl_gtid.cc index 2e453b8dcf8..30f73b673f9 100644 --- a/sql/rpl_gtid.cc +++ b/sql/rpl_gtid.cc @@ -533,7 +533,7 @@ rpl_slave_state::record_gtid(THD *thd, const rpl_gtid *gtid, uint64 sub_id, } if (!in_statement) - mysql_reset_thd_for_next_command(thd); + thd->reset_for_next_command(); DBUG_EXECUTE_IF("gtid_inject_record_gtid", { |