summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <jani@ua141d10.elisa.omakaista.fi>2006-01-12 15:10:12 +0200
committerunknown <jani@ua141d10.elisa.omakaista.fi>2006-01-12 15:10:12 +0200
commit2946f9a64f664293010777e422e7b66058ce323a (patch)
treedf4234c3a0ca83e32bcec81b0e3a16f40606c301 /innobase
parent2dcedd9cbc4effee5a1c7e4c8045f2e8adced065 (diff)
downloadmariadb-git-2946f9a64f664293010777e422e7b66058ce323a.tar.gz
NetWare specific change to increase thread stack size.
Changes to Netware specific mysqld_safe.c include/config-netware.h: NetWare specific change to increase thread stack size. innobase/os/os0thread.c: NetWare specific change to increase thread stack size. netware/mysqld_safe.c: NetWare specific change to make multiple mysqld_safe instances work when called through a NCF file. sql/mysqld.cc: NetWare specific change to increase thread stack size.
Diffstat (limited to 'innobase')
-rw-r--r--innobase/os/os0thread.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/os/os0thread.c b/innobase/os/os0thread.c
index 59d0fdbd8c9..cb72310f23d 100644
--- a/innobase/os/os0thread.c
+++ b/innobase/os/os0thread.c
@@ -148,6 +148,15 @@ os_thread_create(
exit(1);
}
#endif
+#ifdef __NETWARE__
+ ret = pthread_attr_setstacksize(&attr,
+ (size_t) NW_THD_STACKSIZE);
+ if (ret) {
+ fprintf(stderr,
+ "InnoDB: Error: pthread_attr_setstacksize returned %d\n", ret);
+ exit(1);
+ }
+#endif
os_mutex_enter(os_sync_mutex);
os_thread_count++;
os_mutex_exit(os_sync_mutex);