1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Merge amd64.(none):/src/bug27029/my50-bug27029

into  amd64.(none):/src/bug27029/my51-bug27029
This commit is contained in:
iggy@amd64.(none)
2007-06-21 12:47:55 -04:00
4 changed files with 100 additions and 2 deletions

View File

@@ -138,8 +138,9 @@ int _create_index_by_sort(MI_SORT_PARAM *info,my_bool no_messages,
while (memavl >= MIN_SORT_MEMORY)
{
if ((my_off_t) (records+1)*(sort_length+sizeof(char*)) <=
(my_off_t) memavl)
if ((records < UINT_MAX32) &&
((my_off_t) (records + 1) *
(sort_length + sizeof(char*)) <= (my_off_t) memavl))
keys= records+1;
else
do