Commit 7f933eb3 authored by evgen@moonbone.local's avatar evgen@moonbone.local
Browse files

Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt

into  moonbone.local:/work/33675-bug-5.0-opt-mysql
parents 6e60a185 830b8f0e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -239,10 +239,14 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length,
  }
  else
  {
    if (table_sort.buffpek && table_sort.buffpek_len < maxbuffer)
    {
      x_free(table_sort.buffpek);
      table_sort.buffpek= 0;
    }
    if (!(table_sort.buffpek=
          read_buffpek_from_file(&buffpek_pointers, maxbuffer,
                                 (table_sort.buffpek_len < maxbuffer ?
                                  NULL : table_sort.buffpek))))
                                 table_sort.buffpek)))
      goto err;
    buffpek= (BUFFPEK *) table_sort.buffpek;
    table_sort.buffpek_len= maxbuffer;