summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-06-28 12:04:46 -0700
committerunknown <igor@rurik.mysql.com>2005-06-28 12:04:46 -0700
commit10986dba1bba289b8d8c3eee5335b5c38519bc6a (patch)
tree675a7b0633fac6b75afa449d51ac52b7e6c6184a /sql
parent19103bf364396d7a87581fb1faf01b70b852a46c (diff)
parentd2f7623d4525adcd7216ad2a0fad04fdc2e8495d (diff)
downloadmariadb-git-10986dba1bba289b8d8c3eee5335b5c38519bc6a.tar.gz
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.0
into rurik.mysql.com:/home/igor/mysql-5.0 sql/opt_range.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/opt_range.cc2
-rw-r--r--sql/sp_head.cc7
2 files changed, 1 insertions, 8 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index fef32dbb69d..3226dc9607b 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -3703,7 +3703,7 @@ get_mm_leaf(PARAM *param, COND *conf_func, Field *field, KEY_PART *key_part,
/*
We need to restore the runtime mem_root of the thread in this
- function becuase it evaluates the value of its argument, while
+ function because it evaluates the value of its argument, while
the argument can be any, e.g. a subselect. The subselect
items, in turn, assume that all the memory allocated during
the evaluation has the same life span as the item itself.
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 825ec34e410..d075c86f8cd 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -1474,13 +1474,6 @@ sp_lex_keeper::reset_lex_and_exec_core(THD *thd, uint *nextp,
they want to store some value in local variable, pass return value and
etc... So their life time should be longer than one instruction.
- Probably we can call destructors for most of them then we are leaving
- routine. But this won't help much as they are allocated in main query
- MEM_ROOT anyway. So they all go to global thd->free_list.
-
- May be we can use some other MEM_ROOT for this purprose ???
-
- What else should we do for cleanup ?
cleanup_items() is called in sp_head::execute()
*/
return res;