From 28ebf117dd95c831289b7027b44e64b441bb950c Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 3 Oct 2002 18:10:34 +0300 Subject: os0thread.h: Fix the probable reason why InnoDB versions after July 2, 2002 did not start properly in some Win 95/98/ME computers innobase/include/os0thread.h: Fix the probable reason why InnoDB versions after July 2, 2002 did not start properly in some Win 95/98/ME computers --- innobase/include/os0thread.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'innobase/include') diff --git a/innobase/include/os0thread.h b/innobase/include/os0thread.h index 9459750719f..8355afa46e9 100644 --- a/innobase/include/os0thread.h +++ b/innobase/include/os0thread.h @@ -15,7 +15,16 @@ Created 9/8/1995 Heikki Tuuri /* Maximum number of threads which can be created in the program; this is also the size of the wait slot array for MySQL threads which can wait inside InnoDB */ +#ifdef __WIN__ +/* Windows 95/98/ME seemed to have difficulties creating the all +the event semaphores for the wait array slots. If the computer had +<= 64 MB memory, InnoDB startup could take minutes or even crash. +That is why we set this to only 1000 in Windows. */ + +#define OS_THREAD_MAX_N 1000 +#else #define OS_THREAD_MAX_N 10000 +#endif /* Possible fixed priorities for threads */ #define OS_THREAD_PRIORITY_NONE 100 -- cgit v1.2.1 From 25b2d47517dbf04d5898c4b08bb88f2d3cb98839 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 5 Oct 2002 22:23:51 +0300 Subject: btr0cur.c: Do not let range estimator to return over 1 / 2 of total rows in table; use longlong in range estimation btr0cur.h, ha_innobase.cc: Use longlong in range estimation, in case there are > 4 billion rows sql/ha_innobase.cc: Use longlong in range estimation, in case there are > 4 billion rows innobase/include/btr0cur.h: Use longlong in range estimation, in case there are > 4 billion rows innobase/btr/btr0cur.c: Do not let range estimator to return over 1 / 2 of total rows in table; use longlong in range estimation --- innobase/include/btr0cur.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'innobase/include') diff --git a/innobase/include/btr0cur.h b/innobase/include/btr0cur.h index b01cbd9a875..7039ceba245 100644 --- a/innobase/include/btr0cur.h +++ b/innobase/include/btr0cur.h @@ -417,7 +417,7 @@ btr_cur_parse_del_mark_set_sec_rec( /*********************************************************************** Estimates the number of rows in a given index range. */ -ulint +ib_longlong btr_estimate_n_rows_in_range( /*=========================*/ /* out: estimated number of rows */ -- cgit v1.2.1