summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <igor@hundin.mysql.fi>2003-04-24 14:33:33 +0300
committerunknown <igor@hundin.mysql.fi>2003-04-24 14:33:33 +0300
commita7f8b1cb4d5c36f55fffa09ce8b84a1741aeb9f0 (patch)
tree6de7abb070ee2d000b388d96503497e5aed12979 /sql/sql_base.cc
parent1db8654191c18def869c03d246e75be704411d03 (diff)
downloadmariadb-git-a7f8b1cb4d5c36f55fffa09ce8b84a1741aeb9f0.tar.gz
Many files:
Added the MAX_LENGTH_FOR_SORT_DATA option filesort.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/filesort.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/mysqld.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/opt_range.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/records.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/set_var.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_base.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_class.h: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_delete.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_select.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_sort.h: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_table.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/sql_update.cc: Added the MAX_LENGTH_FOR_SORT_DATA option sql/structs.h: Added the MAX_LENGTH_FOR_SORT_DATA option sql/table.h: Added the MAX_LENGTH_FOR_SORT_DATA option sql/uniques.cc: Added the MAX_LENGTH_FOR_SORT_DATA option
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 2063e8b3f08..088a1fa630c 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -245,16 +245,11 @@ static void free_cache_entry(TABLE *table)
void free_io_cache(TABLE *table)
{
DBUG_ENTER("free_io_cache");
- if (table->io_cache)
+ if (table->sort.io_cache)
{
- close_cached_file(table->io_cache);
- my_free((gptr) table->io_cache,MYF(0));
- table->io_cache=0;
- }
- if (table->record_pointers)
- {
- my_free((gptr) table->record_pointers,MYF(0));
- table->record_pointers=0;
+ close_cached_file(table->sort.io_cache);
+ my_free((gptr) table->sort.io_cache,MYF(0));
+ table->sort.io_cache=0;
}
DBUG_VOID_RETURN;
}