diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-10-03 18:10:34 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-10-03 18:10:34 +0300 |
commit | 28ebf117dd95c831289b7027b44e64b441bb950c (patch) | |
tree | 8f449d718d9671df3d1976acdeabf4dd8dd9c791 /innobase | |
parent | 421514ae817446bdb851476c98d1af640fe7ce1c (diff) | |
download | mariadb-git-28ebf117dd95c831289b7027b44e64b441bb950c.tar.gz |
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
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/include/os0thread.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |