1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fix for BUG#10244:

Make get_quick_select_for_ref() accept estimated # records as parameter and 
set QUICK_RANGE_SELECT::records, as this value is used to allocate buffers 
in Multi-Range Read.
This commit is contained in:
sergefp@mysql.com
2005-04-29 01:16:32 +04:00
parent 254bb2570c
commit a7a1d4dc1e
3 changed files with 25 additions and 9 deletions

View File

@ -10971,7 +10971,8 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
*/
if (!(select->quick= (tab->type == JT_FT ?
new FT_SELECT(thd, table, tab->ref.key) :
get_quick_select_for_ref(thd, table, &tab->ref))))
get_quick_select_for_ref(thd, table, &tab->ref,
tab->found_records))))
goto err;
}
}