List:Commits« Previous MessageNext Message »
From:gkrishna Date:January 6 2006 9:12am
Subject:bk commit into 4.1 tree (kp:1.2474)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 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.2474 06/01/06 14:41:36 kp@stripped[kp] +3 -0
  4.1.x_pthread.patch

  sql/mysqld.cc
    1.592 05/12/21 14:45:54 kp@stripped[kp] +6 -0
    Import patch 4.1.x_pthread.patch

  innobase/os/os0thread.c
    1.28 05/12/21 14:45:54 kp@stripped[kp] +9 -0
    Import patch 4.1.x_pthread.patch

  include/config-netware.h
    1.10 05/12/21 14:45:54 kp@stripped[kp] +3 -0
    Import patch 4.1.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-4.1_repair/mysql_4.1repair

--- 1.591/sql/mysqld.cc	2006-01-05 14:04:23 +05:30
+++ 1.592/sql/mysqld.cc	2005-12-21 14:45:54 +05:30
@@ -3089,6 +3089,12 @@
     }
   }
 #endif
+#ifdef __NETWARE__
+  /* Increasing stacksize of threads on NetWare */
+
+  pthread_attr_setstacksize(&connection_attrib, NW_THD_STACKSIZE);
+#endif
+
   thread_stack_min=thread_stack - STACK_MIN_SIZE;
 
   (void) thr_setconcurrency(concurrency);	// 10 by default

--- 1.27/innobase/os/os0thread.c	2005-03-07 15:33:27 +05:30
+++ 1.28/innobase/os/os0thread.c	2005-12-21 14:45:54 +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.9/include/config-netware.h	2005-11-10 15:29:59 +05:30
+++ 1.10/include/config-netware.h	2005-12-21 14:45:54 +05:30
@@ -92,6 +92,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 4.1 tree (kp:1.2474)gkrishna6 Jan