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/event_data_objects.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/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index ca8439aa386..571652de861 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -1337,7 +1337,7 @@ Event_job_data::execute(THD *thd, bool drop) DBUG_ENTER("Event_job_data::execute"); - mysql_reset_thd_for_next_command(thd); + thd->reset_for_next_command(); /* MySQL parser currently assumes that current database is either |