summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-01-11 10:34:37 +0100
committerunknown <joreland@mysql.com>2005-01-11 10:34:37 +0100
commiteae30642cde74965e5f81dca61bd4448a1d889f6 (patch)
tree86ea1af615a89fd1989f73996ef958408496cfb5 /ndb
parent1ef48556bd29936095ddd1b59b835f1c8c6bd0b6 (diff)
parent7535b07425b29a75effa543f51f25ddf7ac3646a (diff)
downloadmariadb-git-eae30642cde74965e5f81dca61bd4448a1d889f6.tar.gz
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/portlib/NdbThread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ndb/src/common/portlib/NdbThread.c b/ndb/src/common/portlib/NdbThread.c
index 69e39994a9c..d4f6617d2f5 100644
--- a/ndb/src/common/portlib/NdbThread.c
+++ b/ndb/src/common/portlib/NdbThread.c
@@ -54,7 +54,11 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func,
strnmov(tmpThread->thread_name,p_thread_name,sizeof(tmpThread->thread_name));
pthread_attr_init(&thread_attr);
+#if (SIZEOF_CHARP == 8)
+ pthread_attr_setstacksize(&thread_attr, 2*thread_stack_size);
+#else
pthread_attr_setstacksize(&thread_attr, thread_stack_size);
+#endif
#ifdef USE_PTHREAD_EXTRAS
/* Guard stack overflow with a 2k databuffer */
pthread_attr_setguardsize(&thread_attr, 2048);