mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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:
parent
d8ac252f0e
commit
2415d955c8
1 changed files with 12 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue