Commit 45bc1889 authored by Varun Gupta's avatar Varun Gupta

Fixing a minor performance regression

parent e9b6afea
......@@ -12007,7 +12007,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
DBUG_RETURN(1);
}
else if (tab->type == JT_ALL && ! use_quick_range &&
!join->sort_nest_info)
!(join->sort_nest_info && join->sort_nest_info->index_used != -1))
{
if (!tab->const_keys.is_clear_all() &&
tab->table->reginfo.impossible_range)
......
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