mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
Merge tsmith@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into ramayana.hindu.god:/home/tsmith/m/bk/build/51
This commit is contained in:
commit
261dd79bff
1 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,13 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
|
|||
FILESORT_INFO table_sort;
|
||||
TABLE_LIST *tab= table->pos_in_table_list;
|
||||
Item_subselect *subselect= tab ? tab->containing_subselect() : 0;
|
||||
|
||||
/*
|
||||
Release InnoDB's adaptive hash index latch (if holding) before
|
||||
running a sort.
|
||||
*/
|
||||
ha_release_temporary_latches(thd);
|
||||
|
||||
/*
|
||||
Don't use table->sort in filesort as it is also used by
|
||||
QUICK_INDEX_MERGE_SELECT. Work with a copy and put it back at the end
|
||||
|
|
Loading…
Add table
Reference in a new issue