Commit 28ebf117 authored by unknown's avatar unknown

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
parent 421514ae
...@@ -15,7 +15,16 @@ Created 9/8/1995 Heikki Tuuri ...@@ -15,7 +15,16 @@ Created 9/8/1995 Heikki Tuuri
/* Maximum number of threads which can be created in the program; /* 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 this is also the size of the wait slot array for MySQL threads which
can wait inside InnoDB */ 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 #define OS_THREAD_MAX_N 10000
#endif
/* Possible fixed priorities for threads */ /* Possible fixed priorities for threads */
#define OS_THREAD_PRIORITY_NONE 100 #define OS_THREAD_PRIORITY_NONE 100
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment