summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorvtkachenko@quadxeon.mysql.com <>2005-12-01 13:34:48 +0100
committervtkachenko@quadxeon.mysql.com <>2005-12-01 13:34:48 +0100
commit045747f23ddba6b1573edbdfd161ae6a539fea87 (patch)
treee6ef274482adb5428e869008911f300bfa799ee9 /sql/records.cc
parent21cc3ae5614434dd3b12ebb10a16b9656dba5d48 (diff)
downloadmariadb-git-045747f23ddba6b1573edbdfd161ae6a539fea87.tar.gz
Many files:
Added mmap support for MyISAM engine
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/records.cc b/sql/records.cc
index ff0185195b0..5cb9b1e5c47 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -153,6 +153,10 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
info->table=table;
info->file= table->file;
info->forms= &info->table; /* Only one table */
+
+ if (table->s->tmp_table == TMP_TABLE && !table->sort.addon_field)
+ VOID(table->file->extra(HA_EXTRA_MMAP));
+
if (table->sort.addon_field)
{
info->rec_buf= table->sort.addon_buf;