summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2015-05-14 17:42:40 +0400
committerAlexander Barkov <bar@mariadb.org>2015-05-14 17:42:40 +0400
commit632f2307f775d255bab948de2178feb85fcac970 (patch)
tree6f1e67f8c41d13e3a4c2e67124ae37037f78c6fe /sql/sql_update.cc
parentfb3e9352a42338f4221caa7e0cb6c6f62eb9f2be (diff)
downloadmariadb-git-632f2307f775d255bab948de2178feb85fcac970.tar.gz
MDEV-7950 Item_func::type() takes 0.26% in OLTP RO
Step#5: changing the function remove_eq_conds() into a virtual method in Item. It removes 6 virtual calls for Item_func::type(), and adds only 2 virtual calls for Item***::remove_eq_conds().
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 37ad416f910..e490edcc1de 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -377,7 +377,7 @@ int mysql_update(THD *thd,
if (conds)
{
Item::cond_result cond_value;
- conds= remove_eq_conds(thd, conds, &cond_value);
+ conds= conds->remove_eq_conds(thd, &cond_value, true);
if (cond_value == Item::COND_FALSE)
{
limit= 0; // Impossible WHERE