diff options
author | vtkachenko@quadxeon.mysql.com <> | 2005-12-01 13:34:48 +0100 |
---|---|---|
committer | vtkachenko@quadxeon.mysql.com <> | 2005-12-01 13:34:48 +0100 |
commit | 045747f23ddba6b1573edbdfd161ae6a539fea87 (patch) | |
tree | e6ef274482adb5428e869008911f300bfa799ee9 /sql/records.cc | |
parent | 21cc3ae5614434dd3b12ebb10a16b9656dba5d48 (diff) | |
download | mariadb-git-045747f23ddba6b1573edbdfd161ae6a539fea87.tar.gz |
Many files:
Added mmap support for MyISAM engine
Diffstat (limited to 'sql/records.cc')
-rw-r--r-- | sql/records.cc | 4 |
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; |