A fix (bug #8799: Killed filesorts can fail inited==RND assertion in ha_rnd_end).
This commit is contained in:
parent
ec775b65f5
commit
04328c3dfa
@ -452,8 +452,11 @@ static ha_rows find_all_keys(SORTPARAM *param, SQL_SELECT *select,
|
|||||||
if (*killed)
|
if (*killed)
|
||||||
{
|
{
|
||||||
DBUG_PRINT("info",("Sort killed by user"));
|
DBUG_PRINT("info",("Sort killed by user"));
|
||||||
|
if (!indexfile && !quick_select)
|
||||||
|
{
|
||||||
(void) file->extra(HA_EXTRA_NO_CACHE);
|
(void) file->extra(HA_EXTRA_NO_CACHE);
|
||||||
file->ha_rnd_end();
|
file->ha_rnd_end();
|
||||||
|
}
|
||||||
DBUG_RETURN(HA_POS_ERROR); /* purecov: inspected */
|
DBUG_RETURN(HA_POS_ERROR); /* purecov: inspected */
|
||||||
}
|
}
|
||||||
if (error == 0)
|
if (error == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user