Below is the list of changes that have just been committed into a local
5.0 repository of kp. When kp does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2024 06/01/09 13:57:44 kp@stripped[kp] +3 -0
5.0.x_pthread.patch
sql/mysqld.cc
1.487 05/12/21 16:37:11 kp@stripped[kp] +5 -0
Import patch 5.0.x_pthread.patch
innobase/os/os0thread.c
1.29 05/12/21 16:37:11 kp@stripped[kp] +9 -0
Import patch 5.0.x_pthread.patch
include/config-netware.h
1.15 05/12/21 16:37:11 kp@stripped[kp] +3 -0
Import patch 5.0.x_pthread.patch
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: kp
# Host: blr-techserv.blr.novell.com
# Root: /home/kp/blr-engrlinux/bk/new/mysql-5.0_repair/mysql_5.0_repair
--- 1.486/sql/mysqld.cc 2006-01-09 12:55:40 +05:30
+++ 1.487/sql/mysqld.cc 2005-12-21 16:37:11 +05:30
@@ -3322,6 +3322,11 @@
}
}
#endif
+#ifdef __NETWARE__
+ /* Increasing stacksize of threads on NetWare */
+
+ pthread_attr_setstacksize(&connection_attrib, NW_THD_STACKSIZE);
+#endif
(void) thr_setconcurrency(concurrency); // 10 by default
--- 1.28/innobase/os/os0thread.c 2005-03-09 18:07:14 +05:30
+++ 1.29/innobase/os/os0thread.c 2005-12-21 16:37:11 +05:30
@@ -148,6 +148,15 @@
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);
--- 1.14/include/config-netware.h 2006-01-06 20:08:01 +05:30
+++ 1.15/include/config-netware.h 2005-12-21 16:37:11 +05:30
@@ -95,6 +95,9 @@
/* On NetWare, stack grows towards lower address*/
#define STACK_DIRECTION -1
+/* On NetWare, we need to set stack size for threads, otherwise default 16K is used */
+#define NW_THD_STACKSIZE 65536
+
/* On NetWare, to fix the problem with the deletion of open files */
#define CANT_DELETE_OPEN_FILES 1
| Thread |
|---|
| • bk commit into 5.0 tree (kp:1.2024) | gkrishna | 9 Jan |