Commit c1463af6 authored by Bjorn Munch's avatar Bjorn Munch

Bug #58282 "mtr --mem" does not work on a machine with libaio installed

Workaround: add --loose-skip-innodb-use-native-aio
Only on linux if explicitly using --mem or setting $OPT_MEM
parent 06790ea7
...@@ -3030,6 +3030,12 @@ sub mysql_install_db { ...@@ -3030,6 +3030,12 @@ sub mysql_install_db {
mtr_add_arg($args, "--lc-messages-dir=%s", $install_lang); mtr_add_arg($args, "--lc-messages-dir=%s", $install_lang);
mtr_add_arg($args, "--character-sets-dir=%s", $install_chsdir); mtr_add_arg($args, "--character-sets-dir=%s", $install_chsdir);
# On some old linux kernels, aio on tmpfs is not supported
# Remove this if/when Bug #58421 fixes this in the server
if ($^O eq "linux" && $opt_mem) {
mtr_add_arg($args, "--loose-skip-innodb-use-native-aio");
}
# InnoDB arguments that affect file location and sizes may # InnoDB arguments that affect file location and sizes may
# need to be given to the bootstrap process as well as the # need to be given to the bootstrap process as well as the
# server process. # server process.
...@@ -4515,6 +4521,13 @@ sub mysqld_arguments ($$$) { ...@@ -4515,6 +4521,13 @@ sub mysqld_arguments ($$$) {
} }
} }
# On some old linux kernels, aio on tmpfs is not supported
# Remove this if/when Bug #58421 fixes this in the server
if ($^O eq "linux" && $opt_mem)
{
mtr_add_arg($args, "--loose-skip-innodb-use-native-aio");
}
if ( $mysql_version_id >= 50106 && !$opt_user_args) if ( $mysql_version_id >= 50106 && !$opt_user_args)
{ {
# Turn on logging to file # Turn on logging to file
......
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