List:Internals« Previous MessageNext Message »
From:pkarthick Date:November 21 2005 5:11am
Subject:bk commit into 4.0 tree (pkarthick:1.2159)
View as plain text  
Below is the list of changes that have just been committed into a local
4.0 repository of prem. When prem 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.2159 05/11/21 09:41:40 pkarthick@stripped[prem] +3 -0
  pthread.patch

  sql/mysqld.cc
    1.529 05/11/18 15:14:59 pkarthick@stripped[prem] +5 -0
    Import patch pthread.patch

  innobase/os/os0thread.c
    1.25 05/11/18 15:14:59 pkarthick@stripped[prem] +9 -0
    Import patch pthread.patch

  include/config-netware.h
    1.8 05/11/18 15:14:59 pkarthick@stripped[prem] +3 -0
    Import patch 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:	pkarthick
# Host:	blr-naas-nwl04.blr.novell.com
# Root:	/home/prem/bk/Sawtooth_SP2

--- 1.528/sql/mysqld.cc	2005-10-04 10:19:54 +05:30
+++ 1.529/sql/mysqld.cc	2005-11-18 15:14:59 +05:30
@@ -2410,6 +2410,11 @@
     }
   }
 #endif
+#ifdef __NETWARE__
+  /* Increasing stacksize of threads on NetWare */
+
+  pthread_attr_setstacksize(&connection_attrib, NW_THD_STACKSIZE);
+#endif
   if (!(opt_specialflag & SPECIAL_NO_PRIOR))
     my_pthread_attr_setprio(&connection_attrib,WAIT_PRIOR);
   pthread_attr_setscope(&connection_attrib, PTHREAD_SCOPE_SYSTEM);

--- 1.24/innobase/os/os0thread.c	2004-04-06 18:44:39 +05:30
+++ 1.25/innobase/os/os0thread.c	2005-11-18 15:14:59 +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.7/include/config-netware.h	2005-10-04 10:19:54 +05:30
+++ 1.8/include/config-netware.h	2005-11-18 15:14:59 +05:30
@@ -100,6 +100,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
+
 /* default directory information */
 #define	DEFAULT_MYSQL_HOME    "sys:/mysql"
 #define PACKAGE               "mysql"
Thread
bk commit into 4.0 tree (pkarthick:1.2159)pkarthick21 Nov