Bug#12677594 - 61575: INNODB: WARNING: IO_SETUP() FAILED WITH EAGAIN.

rb://1033
approved by: Marko Makela

Check return value from os_aio_init() and refuse to start if it fails.
This commit is contained in:
Inaam Rana 2012-04-23 06:39:16 -04:00
parent d8ac252f0e
commit 2415d955c8

View file

@ -1364,10 +1364,18 @@ innobase_start_or_create_for_mysql(void)
} }
# endif /* __WIN__ */ # endif /* __WIN__ */
os_aio_init(io_limit, if (!os_aio_init(io_limit,
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)) {
ut_print_timestamp(stderr);
fprintf(stderr,
" InnoDB: Fatal error: cannot initialize AIO"
" sub-system\n");
return(DB_ERROR);
}
fil_init(srv_file_per_table ? 50000 : 5000, fil_init(srv_file_per_table ? 50000 : 5000,
srv_max_n_open_files); srv_max_n_open_files);