summaryrefslogtreecommitdiff
path: root/sql/opt_ft.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-10-11 22:00:24 +0300
committermonty@mashka.mysql.fi <>2003-10-11 22:00:24 +0300
commitc95d142f8f602b717c6c10d13e37b2b3ecf069d4 (patch)
tree50a7bfd87153439907087d4b3529d622cfc75313 /sql/opt_ft.cc
parent9bba878b8c6b6abd9be97a9d5a6c89bda8762693 (diff)
downloadmariadb-git-c95d142f8f602b717c6c10d13e37b2b3ecf069d4.tar.gz
Add new user variables for tuning memory usage:
query_alloc_block_size, query_prealloc_size, range_alloc_block_size,transaction_alloc_block_size and transaction_prealloc_size Add more checks for "out of memory" detection in range optimization
Diffstat (limited to 'sql/opt_ft.cc')
-rw-r--r--sql/opt_ft.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/opt_ft.cc b/sql/opt_ft.cc
index b35b3230a39..74349819937 100644
--- a/sql/opt_ft.cc
+++ b/sql/opt_ft.cc
@@ -26,11 +26,11 @@
** Create a FT or QUICK RANGE based on a key
****************************************************************************/
-QUICK_SELECT *get_ft_or_quick_select_for_ref(TABLE *table, JOIN_TAB *tab)
+QUICK_SELECT *get_ft_or_quick_select_for_ref(THD *thd, TABLE *table,
+ JOIN_TAB *tab)
{
if (tab->type == JT_FT)
- return new FT_SELECT(table, &tab->ref);
- else
- return get_quick_select_for_ref(table, &tab->ref);
+ return new FT_SELECT(thd, table, &tab->ref);
+ return get_quick_select_for_ref(thd, table, &tab->ref);
}