summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/my_handler.h2
-rw-r--r--include/my_pthread.h8
2 files changed, 3 insertions, 7 deletions
diff --git a/include/my_handler.h b/include/my_handler.h
index 537cf68c150..edb8e21b6a2 100644
--- a/include/my_handler.h
+++ b/include/my_handler.h
@@ -41,7 +41,7 @@ extern "C" {
*/
#define HA_MAX_KEY_LENGTH 1000 /* Max length in bytes */
-#define HA_MAX_KEY_SEG 16 /* Max segments for key */
+#define HA_MAX_KEY_SEG 32 /* Max segments for key */
#define HA_MAX_POSSIBLE_KEY_BUFF (HA_MAX_KEY_LENGTH + 24+ 6+6)
#define HA_MAX_KEY_BUFF (HA_MAX_KEY_LENGTH+HA_MAX_KEY_SEG*6+8+8)
diff --git a/include/my_pthread.h b/include/my_pthread.h
index ea5ca8d10d5..5b6888cdf24 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -687,15 +687,11 @@ extern void my_mutex_end();
#define THREAD_NAME_SIZE 10
#ifndef DEFAULT_THREAD_STACK
-#if SIZEOF_CHARP > 4
/*
- MySQL can survive with 32K, but some glibc libraries require > 128K stack
- To resolve hostnames. Also recursive stored procedures needs stack.
+ We need to have at least 256K stack to handle calls to myisamchk_init()
+ with the current number of keys and key parts.
*/
#define DEFAULT_THREAD_STACK (256*1024L)
-#else
-#define DEFAULT_THREAD_STACK (192*1024)
-#endif
#endif
#define MY_PTHREAD_LOCK_READ 0