Commit d2c74eb9 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Trying a workaround for the Windows crashes

parent 72fbdeec
...@@ -1249,6 +1249,14 @@ innobase_start_or_create_for_mysql(void) ...@@ -1249,6 +1249,14 @@ innobase_start_or_create_for_mysql(void)
return(DB_ERROR); return(DB_ERROR);
} }
#ifdef __WIN__
/*
Need to hardcode this to 2 read and 2 write on Windows
while searching for problem causing this to crash when
higher number of threads are supported.
*/
srv_n_read_io_threads = srv_n_write_io_threads = 2;
#endif
/* Restrict the maximum number of file i/o threads */ /* Restrict the maximum number of file i/o threads */
if ((srv_n_read_io_threads + srv_n_write_io_threads) > SRV_MAX_N_IO_THREADS) { if ((srv_n_read_io_threads + srv_n_write_io_threads) > SRV_MAX_N_IO_THREADS) {
fprintf(stderr, fprintf(stderr,
...@@ -1267,7 +1275,7 @@ innobase_start_or_create_for_mysql(void) ...@@ -1267,7 +1275,7 @@ innobase_start_or_create_for_mysql(void)
SRV_MAX_N_PENDING_SYNC_IOS); SRV_MAX_N_PENDING_SYNC_IOS);
} else { } else {
/* Might need more slots here. Alas, I don't do windows. */ /* Might need more slots here. Alas, I don't do windows. */
n_threads = os_aio_init(8 * SRV_N_PENDING_IOS_PER_THREAD, n_threads = os_aio_init(SRV_N_PENDING_IOS_PER_THREAD,
srv_n_read_io_threads, srv_n_read_io_threads,
srv_n_write_io_threads, srv_n_write_io_threads,
SRV_MAX_N_PENDING_SYNC_IOS); SRV_MAX_N_PENDING_SYNC_IOS);
......
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