diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-16 17:08:56 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-16 17:08:56 +0200 |
commit | b8f4b984f9f23b336491c91c70be448b6fa8f095 (patch) | |
tree | e39bc3a66694fa3347b5714a96ddc93a7c669ab3 /storage/innobase/srv/srv0start.cc | |
parent | d0cd49497fcaf919c1f9c7e929e3003252db8c62 (diff) | |
download | mariadb-git-b8f4b984f9f23b336491c91c70be448b6fa8f095.tar.gz |
MDEV-24685 fixup: Remove srv_n_file_io_threads
The variable was not really being used for anything. The parameters
innodb_read_io_threads, innodb_write_io_threads have replaced
innodb_file_io_threads.
Diffstat (limited to 'storage/innobase/srv/srv0start.cc')
-rw-r--r-- | storage/innobase/srv/srv0start.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc index ae4f831bf2d..311a01ed719 100644 --- a/storage/innobase/srv/srv0start.cc +++ b/storage/innobase/srv/srv0start.cc @@ -110,9 +110,6 @@ lsn_t srv_shutdown_lsn; /** TRUE if a raw partition is in use */ ibool srv_start_raw_disk_in_use; -/** Number of IO threads to use */ -uint srv_n_file_io_threads; - /** UNDO tablespaces starts with space id. */ ulint srv_undo_space_id_start; @@ -1208,18 +1205,11 @@ dberr_t srv_start(bool create_new_db) return(srv_init_abort(err)); } - srv_n_file_io_threads = srv_n_read_io_threads + srv_n_write_io_threads; - - if (!srv_read_only_mode) { - /* Add the log and ibuf IO threads. */ - srv_n_file_io_threads += 2; - } else { + if (srv_read_only_mode) { ib::info() << "Disabling background log and ibuf IO write" << " threads."; } - ut_a(srv_n_file_io_threads <= SRV_MAX_N_IO_THREADS); - if (os_aio_init()) { ib::error() << "Cannot initialize AIO sub-system"; |