Browse Source
MDEV-24313 (2 of 2): Silently ignored innodb_use_native_aio=1
MDEV-24313 (2 of 2): Silently ignored innodb_use_native_aio=1
In commit 5e62b6a5e0
(MDEV-16264)
the logic of os_aio_init() was changed so that it will never fail,
but instead automatically disable innodb_use_native_aio (which is
enabled by default) if the io_setup() system call would fail due
to resource limits being exceeded. This is questionable, especially
because falling back to simulated AIO may lead to significantly
reduced performance.
srv_n_file_io_threads, srv_n_read_io_threads, srv_n_write_io_threads:
Change the data type from ulong to uint.
os_aio_init(): Remove the parameters, and actually return an error code.
thread_pool::configure_aio(): Do not silently fall back to simulated AIO.
Reviewed by: Vladislav Vaintroub
pull/1718/head
10 changed files with 58 additions and 83 deletions
-
12extra/mariabackup/xtrabackup.cc
-
18mysql-test/suite/sys_vars/r/sysvars_innodb,32bit.rdiff
-
4mysql-test/suite/sys_vars/r/sysvars_innodb.result
-
7storage/innobase/handler/ha_innodb.cc
-
18storage/innobase/include/os0file.h
-
6storage/innobase/include/srv0srv.h
-
53storage/innobase/os/os0file.cc
-
4storage/innobase/srv/srv0srv.cc
-
17storage/innobase/srv/srv0start.cc
-
2tpool/tpool.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue