Commit b60419e0 authored by Monty's avatar Monty Committed by Sergei Golubchik

fixed that Filesort_on_disk in slow query log works again

A commit in 10.10 caused it to be always 'No'
parent 9c7e57a4
......@@ -426,6 +426,7 @@ SORT_INFO *filesort(THD *thd, TABLE *table, Filesort *filesort,
else
{
/* filesort cannot handle zero-length records during merge. */
thd->query_plan_flags|= QPLAN_FILESORT_DISK;
DBUG_ASSERT(param.sort_length != 0);
if (sort->buffpek.str && sort->buffpek.length < maxbuffer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment