mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge remote-tracking branch '5.5' into 10.0
This commit is contained in:
@ -96,7 +96,7 @@ uchar **Filesort_buffer::alloc_sort_buffer(uint num_records, uint record_length)
|
||||
|
||||
if (m_idx_array.is_null())
|
||||
{
|
||||
sort_buff_sz= num_records * (record_length + sizeof(uchar*));
|
||||
sort_buff_sz= ((size_t)num_records) * (record_length + sizeof(uchar*));
|
||||
set_if_bigger(sort_buff_sz, record_length * MERGEBUFF2);
|
||||
uchar **sort_keys=
|
||||
(uchar**) my_malloc(sort_buff_sz, MYF(MY_THREAD_SPECIFIC));
|
||||
|
Reference in New Issue
Block a user