Commit b75d7676 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed mysql_install_db --no-defaults

Regression after 5ea28015.
parent abc12339
...@@ -27,6 +27,7 @@ srcdir="" ...@@ -27,6 +27,7 @@ srcdir=""
args="" args=""
defaults="" defaults=""
defaults_group_suffix=""
mysqld_opt="" mysqld_opt=""
user="" user=""
...@@ -130,8 +131,10 @@ parse_arguments() ...@@ -130,8 +131,10 @@ parse_arguments()
--verbose) verbose=1 ;; # Obsolete --verbose) verbose=1 ;; # Obsolete
--rpm) in_rpm=1 ;; --rpm) in_rpm=1 ;;
--help) usage ;; --help) usage ;;
--no-defaults|--defaults-file=*|--defaults-extra-file=*|--defaults-group-suffix=*) --no-defaults|--defaults-file=*|--defaults-extra-file=*)
defaults="$defaults $arg" ;; defaults="$arg" ;;
--defaults-group-suffix=*)
defaults_group_suffix="$arg" ;;
--cross-bootstrap|--windows) --cross-bootstrap|--windows)
# Used when building the MariaDB system tables on a different host than # Used when building the MariaDB system tables on a different host than
...@@ -260,7 +263,7 @@ fi ...@@ -260,7 +263,7 @@ fi
# Now we can get arguments from the groups [mysqld] and [mysql_install_db] # Now we can get arguments from the groups [mysqld] and [mysql_install_db]
# in the my.cfg file, then re-run to merge with command line arguments. # in the my.cfg file, then re-run to merge with command line arguments.
parse_arguments `"$print_defaults" $defaults --mysqld mysql_install_db` parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db`
parse_arguments PICK-ARGS-FROM-ARGV "$@" parse_arguments PICK-ARGS-FROM-ARGV "$@"
# Configure paths to support files # Configure paths to support files
...@@ -420,9 +423,9 @@ fi ...@@ -420,9 +423,9 @@ fi
mysqld_bootstrap="${MYSQLD_BOOTSTRAP-$mysqld}" mysqld_bootstrap="${MYSQLD_BOOTSTRAP-$mysqld}"
mysqld_install_cmd_line() mysqld_install_cmd_line()
{ {
"$mysqld_bootstrap" $defaults "$mysqld_opt" --bootstrap \ "$mysqld_bootstrap" $defaults $defaults_group_suffix "$mysqld_opt" \
"--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --loose-skip-innodb \ --bootstrap "--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 \
--loose-skip-ndbcluster $args --max_allowed_packet=8M \ --loose-skip-innodb --loose-skip-ndbcluster $args --max_allowed_packet=8M \
--default-storage-engine=myisam \ --default-storage-engine=myisam \
--net_buffer_length=16K --net_buffer_length=16K
} }
......
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