1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#18463911 : SERVER CRASHES ON CREATING A TEMP TABLE WITH

CERTAIN MAX_HEAP_TABLE_SIZE VALUES

Followup patch to fix failure on Window machine.
This commit is contained in:
Arun Kuruvila
2014-06-26 10:08:55 +05:30
parent f499292522
commit dd31a2c27b
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ static void init_block(HP_BLOCK *block, uint reclength, ulong min_records,
records_in_block= max_records / 10;
if (records_in_block < 10 && max_records)
records_in_block= 10;
if (!records_in_block || (ulong) records_in_block * recbuffer >
if (!records_in_block || (ulonglong) records_in_block * recbuffer >
(my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS))
records_in_block= (my_default_record_cache_size - sizeof(HP_PTRS) *
HP_MAX_LEVELS) / recbuffer + 1;