Merge bk-internal.mysql.com:/data0/bk/mysql-5.0-opt
into bk-internal.mysql.com:/data0/bk/mysql-5.1-opt
This commit is contained in:
commit
a714053711
@ -245,10 +245,14 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (table_sort.buffpek && table_sort.buffpek_len < maxbuffer)
|
||||||
|
{
|
||||||
|
x_free(table_sort.buffpek);
|
||||||
|
table_sort.buffpek= 0;
|
||||||
|
}
|
||||||
if (!(table_sort.buffpek=
|
if (!(table_sort.buffpek=
|
||||||
(uchar *) read_buffpek_from_file(&buffpek_pointers, maxbuffer,
|
(uchar *) read_buffpek_from_file(&buffpek_pointers, maxbuffer,
|
||||||
(table_sort.buffpek_len < maxbuffer ?
|
table_sort.buffpek)))
|
||||||
NULL : table_sort.buffpek))))
|
|
||||||
goto err;
|
goto err;
|
||||||
buffpek= (BUFFPEK *) table_sort.buffpek;
|
buffpek= (BUFFPEK *) table_sort.buffpek;
|
||||||
table_sort.buffpek_len= maxbuffer;
|
table_sort.buffpek_len= maxbuffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user