From 80615fade284e14119fc189f136d30fc475f8aec Mon Sep 17 00:00:00 2001 From: "igor@hundin.mysql.fi" <> Date: Thu, 24 Apr 2003 14:33:33 +0300 Subject: Many files: Added the MAX_LENGTH_FOR_SORT_DATA option filesort.cc: Added the MAX_LENGTH_FOR_SORT_DATA option --- sql/sql_base.cc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'sql/sql_base.cc') 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; } -- cgit v1.2.1