summaryrefslogtreecommitdiff
path: root/sql/filesort.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r--sql/filesort.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc
index 54154297a8d..6ff194fd6cf 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -280,7 +280,8 @@ SORT_INFO *filesort(THD *thd, TABLE *table, Filesort *filesort,
num_rows= table->file->estimate_rows_upper_bound();
Sort_costs costs;
- costs.compute_sort_costs(&param, num_rows, memory_available);
+ costs.compute_sort_costs(&param, num_rows, memory_available,
+ param.using_addon_fields());
if (costs.fastest_sort == NO_SORT_POSSIBLE_OUT_OF_MEM)
{