diff options
author | unknown <kaa@polly.(none)> | 2007-09-03 12:57:47 +0400 |
---|---|---|
committer | unknown <kaa@polly.(none)> | 2007-09-03 12:57:47 +0400 |
commit | e25e0979b47cdf9178025e54e2fa0ab9a8207f65 (patch) | |
tree | dd1e17ea3865510935825cf1b746d5340a342f1f /include/my_global.h | |
parent | 56e6e9c1c2dcac182703da87e72e5255b708590f (diff) | |
download | mariadb-git-e25e0979b47cdf9178025e54e2fa0ab9a8207f65.tar.gz |
Use SIZE_T_MAX instead of ulong as a limit for key_buffer_size to allow key_bufer_size > 4G on Windows in 5.1. This is for bug #5731.
include/my_global.h:
Added SIZE_T_MAX.
sql/mysqld.cc:
Use SIZE_T_MAX instead of ulong as a limit for key_buffer_size to allow key_bufer_size > 4G on Windows in 5.1.
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index 8b6cdef8daa..b9452adebbb 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -863,6 +863,9 @@ typedef SOCKET_SIZE_TYPE size_socket; #ifndef SSIZE_MAX #define SSIZE_MAX ((~((size_t) 0)) / 2) #endif +#ifndef SIZE_T_MAX +#define SIZE_T_MAX ~((size_t) 0) +#endif #ifndef HAVE_FINITE #define finite(x) (1.0 / fabs(x) > 0.0) |