Skip to content

Commit b60419e

Browse files
montywivuvova
authored andcommitted
fixed that Filesort_on_disk in slow query log works again
A commit in 10.10 caused it to be always 'No'
1 parent 9c7e57a commit b60419e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/filesort.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ SORT_INFO *filesort(THD *thd, TABLE *table, Filesort *filesort,
426426
else
427427
{
428428
/* filesort cannot handle zero-length records during merge. */
429+
thd->query_plan_flags|= QPLAN_FILESORT_DISK;
429430
DBUG_ASSERT(param.sort_length != 0);
430431

431432
if (sort->buffpek.str && sort->buffpek.length < maxbuffer)

0 commit comments

Comments
 (0)